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 184b71e commit 0f30a24
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,27 @@ 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
# 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 0f30a24

Please sign in to comment.