Skip to content

Commit 0cbea6a

Browse files
authored
Add pyright to CI
1 parent 2f8e8bb commit 0cbea6a

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/workflows/test.yaml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,38 @@ jobs:
4949

5050
steps:
5151
- uses: actions/checkout@v2
52-
- name: Set up Python 3.8
53-
uses: actions/setup-python@v2
52+
- name: Set up Python
53+
uses: actions/setup-python@v5
5454
with:
55-
python-version: 3.8
56-
- name: Install dependencies
55+
python-version: 3.13
56+
- name: Install dev dependencies
5757
run: |
58-
python -m pip install --upgrade pip
5958
python -m pip install -e .[signals] -r requirements-dev.txt
6059
- name: Run mypy
6160
run: |
6261
mypy .
6362
63+
pyright:
64+
runs-on: ubuntu-latest
65+
66+
steps:
67+
- uses: actions/checkout@v2
68+
- name: Set up Python
69+
uses: actions/setup-python@v5
70+
with:
71+
python-version: 3.13
72+
- name: Set up Node
73+
uses: actions/setup-node@v4
74+
- name: Install PynamoDB dev dependencies
75+
run: |
76+
python -m pip install -e .[signals] -r requirements-dev.txt
77+
- name: Install pyright
78+
run: |
79+
npm install -g pyright
80+
- name: Run pyright
81+
run: |
82+
pyright .
83+
6484
build-docs:
6585
runs-on: ubuntu-latest
6686

0 commit comments

Comments
 (0)