1name: Python Type-Check
2
3on:
4 push:
5 paths:
6 - '.github/workflows/python-type-check.yml'
7 - 'pyrightconfig.json'
8 - '**.py'
9 - '**/requirements*.txt'
10 pull_request:
11 paths:
12 - '.github/workflows/python-type-check.yml'
13 - 'pyrightconfig.json'
14 - '**.py'
15 - '**/requirements*.txt'
16
17concurrency:
18 group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
19 cancel-in-progress: true
20
21jobs:
22 python-type-check:
23 runs-on: ubuntu-latest
24 name: pyright type-check
25 steps:
26 - name: Check out source repository
27 uses: actions/checkout@v6
28 - name: Set up Python environment
29 uses: actions/setup-python@v6
30 with:
31 python-version: "3.11"
32 pip-install: -r requirements/requirements-all.txt
33 - name: Type-check with Pyright
34 uses: jakebailey/pyright-action@v2
35 with:
36 version: 1.1.382
37 level: warning
38 warnings: true