4040 runs-on : ubuntu-20.04
4141 strategy :
4242 matrix :
43- python-version : [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10']
43+ python-version : [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10', '3.11' ]
4444 fail-fast : false
4545
4646 steps :
5656 uses : actions/setup-python@v4
5757 with :
5858 python-version : ${{ matrix.python-version }}
59+ check-latest : true
5960
6061 - name : Install missing software on ubuntu
6162 run : |
7374 - name : Install missing software on ubuntu (Python 3)
7475 if : matrix.python-version != '2.7'
7576 run : |
77+ # shellcheck cannot be installed via pip
78+ # ERROR: Could not find a version that satisfies the requirement shellcheck (from versions: none)
79+ # ERROR: No matching distribution found for shellcheck
7680 sudo apt-get install shellcheck
7781 python -m pip install pip --upgrade
7882 python -m pip install natsort
@@ -85,25 +89,25 @@ jobs:
8589 python -m pip install psutil
8690
8791 - name : run Shellcheck
88- if : matrix.python-version == '3.10 '
92+ if : matrix.python-version == '3.11 '
8993 run : |
9094 find . -name "*.sh" | xargs shellcheck --exclude SC2002,SC2013,SC2034,SC2035,SC2043,SC2046,SC2086,SC2089,SC2090,SC2129,SC2211,SC2231
9195
9296 - name : run pylint
93- if : matrix.python-version == '3.10 '
97+ if : matrix.python-version == '3.11 '
9498 run : |
9599 echo "FIXME pylint is disabled for now because it fails to import files:"
96100 echo "FIXME addons/runaddon.py:1:0: E0401: Unable to import 'cppcheckdata' (import-error)"
97101 echo "FIXME addons/runaddon.py:1:0: E0401: Unable to import 'cppcheck' (import-error)"
98102 # pylint --rcfile=pylintrc_travis --jobs $(nproc) addons/*.py htmlreport/cppcheck-htmlreport htmlreport/*.py tools/*.py
99103
100104 - name : check .json files
101- if : matrix.python-version == '3.10 '
105+ if : matrix.python-version == '3.11 '
102106 run : |
103107 find . -name '*.json' | xargs -n 1 python -m json.tool > /dev/null
104108
105109 - name : Validate
106- if : matrix.python-version == '3.10 '
110+ if : matrix.python-version == '3.11 '
107111 run : |
108112 make -j$(nproc) validateCFG validatePlatforms validateRules
109113
@@ -156,7 +160,7 @@ jobs:
156160 PYTHONPATH : ./tools
157161
158162 - name : dmake
159- if : matrix.python-version == '3.10 '
163+ if : matrix.python-version == '3.11 '
160164 run : |
161165 make -j$(nproc) run-dmake
162166 git diff --exit-code
0 commit comments