From 872c3a4ac74e45fd364bf8f42aefba6787614f94 Mon Sep 17 00:00:00 2001 From: Maxim Rebguns Date: Wed, 10 Apr 2024 11:48:56 -0500 Subject: [PATCH] ci: type checking in Python workflow --- .github/workflows/python-package.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 10dec95..66e425d 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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 @@ -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