From 0778fbe51f70eb64383623ca786797f622086903 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sat, 4 Jun 2022 15:44:01 +0300 Subject: [PATCH] ci: check with mypy + upload report --- .github/workflows/pythonpackage.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 1844394..62ec5d0 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -39,3 +39,14 @@ jobs: poetry run flake8 sync_ics2gcal --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest run: poetry run pytest -v + + - name: Check type annotations with mypy + run: | + mkdir mypy_report + poetry run mypy --pretty --html-report mypy_report/ + + - name: Upload mypy report + uses: actions/upload-artifact@v2 + with: + name: mypy_report + path: mypy_report/