Skip to content

Commit 0765423

Browse files
glehmannydirson
authored andcommitted
add pyright check to the CI
Signed-off-by: Gaëtan Lehmann <[email protected]>
1 parent 44a6be0 commit 0765423

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/jobs-check.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,21 @@ jobs:
3737
run: cp data.py-dist data.py
3838
- name: Check with mypy
3939
run: mypy lib/ tests/
40+
41+
pyright:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: Set up Python
46+
uses: actions/setup-python@v4
47+
with:
48+
python-version: 3.8
49+
- name: Install dependencies
50+
run: |
51+
python -m pip install --upgrade pip
52+
pip install -r requirements/base.txt
53+
pip install pyright
54+
- name: Create a dummy data.py
55+
run: cp data.py-dist data.py
56+
- name: Check with pyright
57+
run: pyright lib/ # tests/

0 commit comments

Comments
 (0)