added/updated to Python 3.11 in CI (#4565)
* added/updated to Python 3.11 in CI * specify `check-latest: true` for `actions/setup-python` so we always use the latest version * scriptcheck.yml: added note about `shellcheck`
This commit is contained in:
parent
b4e78e8ac5
commit
8672e12a7a
|
@ -87,10 +87,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.11
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.11'
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Set up Visual Studio environment
|
- name: Set up Visual Studio environment
|
||||||
uses: ilammy/msvc-dev-cmd@v1
|
uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
|
@ -18,10 +18,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.11
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.11'
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Install missing software on ubuntu
|
- name: Install missing software on ubuntu
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -40,7 +40,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, '3.10']
|
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10', '3.11']
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -56,6 +56,7 @@ jobs:
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Install missing software on ubuntu
|
- name: Install missing software on ubuntu
|
||||||
run: |
|
run: |
|
||||||
|
@ -73,6 +74,9 @@ jobs:
|
||||||
- name: Install missing software on ubuntu (Python 3)
|
- name: Install missing software on ubuntu (Python 3)
|
||||||
if: matrix.python-version != '2.7'
|
if: matrix.python-version != '2.7'
|
||||||
run: |
|
run: |
|
||||||
|
# shellcheck cannot be installed via pip
|
||||||
|
# ERROR: Could not find a version that satisfies the requirement shellcheck (from versions: none)
|
||||||
|
# ERROR: No matching distribution found for shellcheck
|
||||||
sudo apt-get install shellcheck
|
sudo apt-get install shellcheck
|
||||||
python -m pip install pip --upgrade
|
python -m pip install pip --upgrade
|
||||||
python -m pip install natsort
|
python -m pip install natsort
|
||||||
|
@ -85,12 +89,12 @@ jobs:
|
||||||
python -m pip install psutil
|
python -m pip install psutil
|
||||||
|
|
||||||
- name: run Shellcheck
|
- name: run Shellcheck
|
||||||
if: matrix.python-version == '3.10'
|
if: matrix.python-version == '3.11'
|
||||||
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.10'
|
if: matrix.python-version == '3.11'
|
||||||
run: |
|
run: |
|
||||||
echo "FIXME pylint is disabled for now because it fails to import files:"
|
echo "FIXME pylint is disabled for now because it fails to import files:"
|
||||||
echo "FIXME addons/runaddon.py:1:0: E0401: Unable to import 'cppcheckdata' (import-error)"
|
echo "FIXME addons/runaddon.py:1:0: E0401: Unable to import 'cppcheckdata' (import-error)"
|
||||||
|
@ -98,12 +102,12 @@ jobs:
|
||||||
# pylint --rcfile=pylintrc_travis --jobs $(nproc) addons/*.py htmlreport/cppcheck-htmlreport htmlreport/*.py tools/*.py
|
# pylint --rcfile=pylintrc_travis --jobs $(nproc) addons/*.py htmlreport/cppcheck-htmlreport htmlreport/*.py tools/*.py
|
||||||
|
|
||||||
- name: check .json files
|
- name: check .json files
|
||||||
if: matrix.python-version == '3.10'
|
if: matrix.python-version == '3.11'
|
||||||
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.10'
|
if: matrix.python-version == '3.11'
|
||||||
run: |
|
run: |
|
||||||
make -j$(nproc) validateCFG validatePlatforms validateRules
|
make -j$(nproc) validateCFG validatePlatforms validateRules
|
||||||
|
|
||||||
|
@ -156,7 +160,7 @@ jobs:
|
||||||
PYTHONPATH: ./tools
|
PYTHONPATH: ./tools
|
||||||
|
|
||||||
- name: dmake
|
- name: dmake
|
||||||
if: matrix.python-version == '3.10'
|
if: matrix.python-version == '3.11'
|
||||||
run: |
|
run: |
|
||||||
make -j$(nproc) run-dmake
|
make -j$(nproc) run-dmake
|
||||||
git diff --exit-code
|
git diff --exit-code
|
||||||
|
|
|
@ -18,10 +18,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.11
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.11'
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Install missing software on ubuntu
|
- name: Install missing software on ubuntu
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -18,10 +18,11 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up Python 3.10
|
- name: Set up Python 3.11
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.10'
|
python-version: '3.11'
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Install missing software on ubuntu
|
- name: Install missing software on ubuntu
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Reference in New Issue