Skip to content

Commit

Permalink
ci: type checking in Python workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmaxguns committed Apr 10, 2024
1 parent cf5ef1e commit 872c3a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install flake8 pytest mypy
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python -m pip install build
Expand All @@ -38,6 +38,9 @@ jobs:
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Type check with MyPy
run: |
python -m mypy wonderwords
- name: Test with pytest
run: |
python -m pytest

0 comments on commit 872c3a4

Please sign in to comment.