update latest Python in CI to 3.10 / use all available threads for pylint (#3493)

This commit is contained in:
Oliver Stöneberg 2021-10-11 19:14:46 +02:00 committed by GitHub
parent 5e9bc48d26
commit f309925a7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 14 deletions

View File

@ -17,10 +17,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.9 - name: Set up Python 3.10
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.9 python-version: '3.10'
- name: Cache uncrustify - name: Cache uncrustify
uses: actions/cache@v2 uses: actions/cache@v2

View File

@ -25,11 +25,11 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.9 - name: Set up Python 3.10
if: matrix.qt_ver == '' if: matrix.qt_ver == ''
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.9 python-version: '3.10'
- name: Setup msbuild.exe - name: Setup msbuild.exe
if: matrix.qt_ver == '' if: matrix.qt_ver == ''

View File

@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
strategy: strategy:
matrix: matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10']
fail-fast: false fail-fast: false
steps: steps:
@ -48,25 +48,22 @@ jobs:
python -m pip install psutil python -m pip install psutil
- name: run Shellcheck - name: run Shellcheck
if: matrix.python-version == '3.9' if: matrix.python-version == '3.10'
run: | run: |
find . -name "*.sh" | xargs shellcheck --exclude SC2002,SC2013,SC2034,SC2035,SC2043,SC2046,SC2086,SC2089,SC2090,SC2129,SC2211,SC2231 find . -name "*.sh" | xargs shellcheck --exclude SC2002,SC2013,SC2034,SC2035,SC2043,SC2046,SC2086,SC2089,SC2090,SC2129,SC2211,SC2231
- name: run pylint - name: run pylint
if: matrix.python-version == '3.9' if: matrix.python-version == '3.10'
run: | run: |
pylint --rcfile=pylintrc_travis addons/*.py pylint --rcfile=pylintrc_travis --jobs $(nproc) addons/*.py htmlreport/cppcheck-htmlreport htmlreport/*.py tools/*.py
pylint --rcfile=pylintrc_travis htmlreport/cppcheck-htmlreport
pylint --rcfile=pylintrc_travis htmlreport/*.py
pylint --rcfile=pylintrc_travis tools/*.py
- name: check .json files - name: check .json files
if: matrix.python-version == '3.9' if: matrix.python-version == '3.10'
run: | run: |
find . -name '*.json' | xargs -n 1 python -m json.tool > /dev/null find . -name '*.json' | xargs -n 1 python -m json.tool > /dev/null
- name: Validate - name: Validate
if: matrix.python-version == '3.9' if: matrix.python-version == '3.10'
run: | run: |
make -j$(nproc) validateCFG validatePlatforms validateRules make -j$(nproc) validateCFG validatePlatforms validateRules
@ -103,7 +100,7 @@ jobs:
./check.sh ./check.sh
- name: dmake - name: dmake
if: matrix.python-version == '3.9' if: matrix.python-version == '3.10'
run: | run: |
make -j$(nproc) run-dmake make -j$(nproc) run-dmake
git diff --exit-code git diff --exit-code