Skip to content

Commit

Permalink
ci: setup lint ci
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo authored Jan 29, 2023
1 parent 0d3f61f commit e515af9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: lint

on:
pull_request:
push:
branches: [main]
workflow_dispatch:

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Setup and run pre-commit
uses: pre-commit/[email protected]
- name: Setup pdm
uses: pdm-project/setup-pdm@v3
with:
python-version: 3.10
cache: true
- name: Install dependencies
run: pdm install
- name: Enforce types with mypy
run: pdm run mypy torchattack

0 comments on commit e515af9

Please sign in to comment.