Skip to content

Commit

Permalink
Add Pyright to GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ewjoachim committed Jan 13, 2024
1 parent 27b777c commit 7d14465
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,30 @@ jobs:
name: coverage
path: .coverage.${{ matrix.python-version }}

static-typing:
name: Run Pyright
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

- uses: actions/setup-python@v5
with:
cache: 'poetry'

- name: Install dependencies
run: pipx run poetry install --all-extras --with=types

- name: Activate virtualenv
run: echo "$(pipx run poetry env info --path)/bin" >> $GITHUB_PATH

- uses: jakebailey/pyright-action@v1

report-status:
name: success
runs-on: ubuntu-latest
needs: build
needs:
- build
- static-typing
steps:
- name: Report success
run: echo 'Success !'
Expand Down
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
ci:
skip: [pylint]
autoupdate_schedule: quarterly

skip: [pyright]
autoupdate_schedule: quarterly
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
Expand Down

0 comments on commit 7d14465

Please sign in to comment.