|
48 | 48 | runs-on: ubuntu-20.04 |
49 | 49 | strategy: |
50 | 50 | matrix: |
51 | | - python-version: [3.5, 3.6, 3.7, 3.8, 3.9, '3.10', '3.11'] |
| 51 | + python-version: [3.5, 3.6, 3.7, 3.8, 3.9, '3.10', '3.11', '3.12'] |
| 52 | + include: |
| 53 | + - python-version: '3.12' |
| 54 | + python-latest: true |
| 55 | + |
52 | 56 | fail-fast: false |
53 | 57 |
|
54 | 58 | steps: |
@@ -97,25 +101,25 @@ jobs: |
97 | 101 | python -m pip install psutil |
98 | 102 |
|
99 | 103 | - name: run Shellcheck |
100 | | - if: matrix.python-version == '3.11' |
| 104 | + if: matrix.python-latest |
101 | 105 | run: | |
102 | 106 | find . -name "*.sh" | xargs shellcheck --exclude SC2002,SC2013,SC2034,SC2035,SC2043,SC2046,SC2086,SC2089,SC2090,SC2129,SC2211,SC2231 |
103 | 107 |
|
104 | 108 | - name: run pylint |
105 | | - if: matrix.python-version == '3.11' |
| 109 | + if: matrix.python-latest |
106 | 110 | run: | |
107 | 111 | echo "FIXME pylint is disabled for now because it fails to import files:" |
108 | 112 | echo "FIXME addons/runaddon.py:1:0: E0401: Unable to import 'cppcheckdata' (import-error)" |
109 | 113 | echo "FIXME addons/runaddon.py:1:0: E0401: Unable to import 'cppcheck' (import-error)" |
110 | 114 | # pylint --rcfile=pylintrc_travis --jobs $(nproc) addons/*.py htmlreport/cppcheck-htmlreport htmlreport/*.py tools/*.py |
111 | 115 |
|
112 | 116 | - name: check .json files |
113 | | - if: matrix.python-version == '3.11' |
| 117 | + if: matrix.python-latest |
114 | 118 | run: | |
115 | 119 | find . -name '*.json' | xargs -n 1 python -m json.tool > /dev/null |
116 | 120 |
|
117 | 121 | - name: Validate |
118 | | - if: matrix.python-version == '3.11' |
| 122 | + if: matrix.python-latest |
119 | 123 | run: | |
120 | 124 | make -j$(nproc) validateCFG validatePlatforms validateRules |
121 | 125 |
|
@@ -177,7 +181,7 @@ jobs: |
177 | 181 | PYTHONPATH: ./tools |
178 | 182 |
|
179 | 183 | - name: dmake |
180 | | - if: matrix.python-version == '3.11' |
| 184 | + if: matrix.python-latest |
181 | 185 | run: | |
182 | 186 | make -j$(nproc) run-dmake |
183 | 187 | git diff --exit-code |
0 commit comments