From 25057e4f146256812c72ba82b99a47e0ba897217 Mon Sep 17 00:00:00 2001 From: Lucien Morey Date: Wed, 13 Nov 2024 20:09:41 +1100 Subject: [PATCH] add mypy to ci --- .github/workflows/python.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index cfe5af2c34..b5359e2432 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -37,13 +37,20 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel pytest + pip install setuptools wheel pytest mypy - name: Build wheel working-directory: ./photon-lib/py run: | python setup.py sdist bdist_wheel + - name: Run mypy type checking + uses: liskin/gh-problem-matcher-wrap@v3 + with: + linters: mypy + working-directory: ./photon-lib/py + run: mypy --show-column-numbers --exclude=build . + - name: Run Unit Tests working-directory: ./photon-lib/py run: |