Skip to content

Commit

Permalink
CI: Verify public API types with pyright
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpieters committed Dec 7, 2023
1 parent bee9221 commit af4900f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,28 @@ jobs:
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}

typesafety:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
cache: 'pip'

- run: |
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
# Tell setuptools to *not* create a PEP 660 import hook and to use
# symlinks instead, # so that pyright can still find the package. See
# https://microsoft.github.io/pyright/#/import-resolution?id=editable-installs
pip install --editable . --config-settings editable_mode=strict
- run: echo "$PWD/.venv/bin" >> $GITHUB_PATH

- uses: jakebailey/pyright-action@v1
with:
ignore-external: true
verify-types: "aocd"

0 comments on commit af4900f

Please sign in to comment.