Skip to content

Commit a9ef5e8

Browse files
committed
CFE-4554: Added pyright to GH Actions
Signed-off-by: Ole Herman Schumacher Elgesem <ole.elgesem@northern.tech>
1 parent 1aad5c0 commit a9ef5e8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/python-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
31-
python -m pip install flake8 pytest setuptools wheel
31+
python -m pip install flake8 pyright pytest setuptools wheel
3232
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3333
- name: Lint with flake8
3434
run: |
3535
# stop the build if there are Python syntax errors or undefined names
3636
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3737
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3838
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
39+
- name: Lint with pyright (type checking)
40+
run: |
41+
pyright cfbs
3942
- name: Test with pytest
4043
run: |
4144
pytest

0 commit comments

Comments
 (0)