Skip to content

Commit

Permalink
gha: add python mypy checking
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
  • Loading branch information
cyphar committed Oct 8, 2024
1 parent c29cc42 commit aa25785
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/bindings-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@ on:
name: bindings-python

jobs:
# TODO: Do some kind of lints?

mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Set up python venv.
- uses: actions/setup-python@v5
- name: install mypy
run: >-
python3 -m pip install --user mypy
- uses: tsuyoshicho/action-mypy@v4
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
level: warning
workdir: contrib/bindings/python/pathrs

smoke-test:
strategy:
fail-fast: false
Expand Down Expand Up @@ -75,6 +93,7 @@ jobs:

complete:
needs:
- mypy
- smoke-test
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit aa25785

Please sign in to comment.