summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorNicolas Hennion <nicolashennion@gmail.com>2022-07-10 18:37:58 +0200
committerGitHub <noreply@github.com>2022-07-10 18:37:58 +0200
commit169468cd0bd335042a60526817898d3c75190c7c (patch)
tree80964af771b47d000cbb9629a28cd62f467572a3 /.github
parent820007073fa1a5b7d272e1d0d5b0ba050bc71d10 (diff)
parent3237d2aedf9e0a9281030a5e62db1de9a4c1f3f5 (diff)
Merge pull request #2084 from sylvainmouquet/chore--add-pyright
chore(ci): add pyright
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 42c2a45f..a3afe6fc 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -34,6 +34,17 @@ jobs:
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --exclude=.git,./docs,./glances/outputs/static
+
+ - name: Static type check
+ run: |
+ if [ "${{ matrix.python-version }}" == "2.7" ];
+ then
+ echo "Skipping static type check for Python 2.7";
+ else
+ pip install pyright
+ pyright glances
+ fi
+
- name: Unitary tests
run: |
python ./unitest.py