Skip to content

Commit

Permalink
Split out lint job from test action
Browse files Browse the repository at this point in the history
Run lint separately from tests, unversioned.

Also add cython-lint.
  • Loading branch information
p00ya committed May 19, 2024
1 parent 1c76b5f commit 3f5a1e8
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,9 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
pip3 install Cython numpy pytest black mypy setuptools
pip3 install Cython numpy pytest mypy setuptools
python3 setup.py develop
pip3 freeze --all
- name: Lint
run: |
python3 -m black --check climbing_ratings setup.py tests/*.py
- name: Build and test
run: |
python3 setup.py build_ext --inplace
Expand All @@ -64,3 +61,18 @@ jobs:
else
echo "skipping type checking; needs Python 3.9"
fi
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip3 install black cython-lint
- name: black
run: |
python3 -m black --check climbing_ratings setup.py tests/*.py
- name: cython-lint
run: |
cython-lint .

0 comments on commit 3f5a1e8

Please sign in to comment.