Skip to content

Commit f309925

Browse files
authored
update latest Python in CI to 3.10 / use all available threads for pylint (#3493)
1 parent 5e9bc48 commit f309925

3 files changed

Lines changed: 11 additions & 14 deletions

File tree

.github/workflows/CI-unixish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v2
1919

20-
- name: Set up Python 3.9
20+
- name: Set up Python 3.10
2121
uses: actions/setup-python@v2
2222
with:
23-
python-version: 3.9
23+
python-version: '3.10'
2424

2525
- name: Cache uncrustify
2626
uses: actions/cache@v2

.github/workflows/CI-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v2
2727

28-
- name: Set up Python 3.9
28+
- name: Set up Python 3.10
2929
if: matrix.qt_ver == ''
3030
uses: actions/setup-python@v2
3131
with:
32-
python-version: 3.9
32+
python-version: '3.10'
3333

3434
- name: Setup msbuild.exe
3535
if: matrix.qt_ver == ''

.github/workflows/scriptcheck.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-20.04
1111
strategy:
1212
matrix:
13-
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]
13+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10']
1414
fail-fast: false
1515

1616
steps:
@@ -48,25 +48,22 @@ jobs:
4848
python -m pip install psutil
4949
5050
- name: run Shellcheck
51-
if: matrix.python-version == '3.9'
51+
if: matrix.python-version == '3.10'
5252
run: |
5353
find . -name "*.sh" | xargs shellcheck --exclude SC2002,SC2013,SC2034,SC2035,SC2043,SC2046,SC2086,SC2089,SC2090,SC2129,SC2211,SC2231
5454
5555
- name: run pylint
56-
if: matrix.python-version == '3.9'
56+
if: matrix.python-version == '3.10'
5757
run: |
58-
pylint --rcfile=pylintrc_travis addons/*.py
59-
pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
60-
pylint --rcfile=pylintrc_travis htmlreport/*.py
61-
pylint --rcfile=pylintrc_travis tools/*.py
58+
pylint --rcfile=pylintrc_travis --jobs $(nproc) addons/*.py htmlreport/cppcheck-htmlreport htmlreport/*.py tools/*.py
6259
6360
- name: check .json files
64-
if: matrix.python-version == '3.9'
61+
if: matrix.python-version == '3.10'
6562
run: |
6663
find . -name '*.json' | xargs -n 1 python -m json.tool > /dev/null
6764
6865
- name: Validate
69-
if: matrix.python-version == '3.9'
66+
if: matrix.python-version == '3.10'
7067
run: |
7168
make -j$(nproc) validateCFG validatePlatforms validateRules
7269
@@ -103,7 +100,7 @@ jobs:
103100
./check.sh
104101
105102
- name: dmake
106-
if: matrix.python-version == '3.9'
103+
if: matrix.python-version == '3.10'
107104
run: |
108105
make -j$(nproc) run-dmake
109106
git diff --exit-code

0 commit comments

Comments
 (0)