Skip to content

Commit 4afc29b

Browse files
authored
updated latest Python in CI to 3.12 (#5505)
1 parent 8ac7590 commit 4afc29b

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/CI-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ jobs:
8888
steps:
8989
- uses: actions/checkout@v3
9090

91-
- name: Set up Python 3.11
91+
- name: Set up Python 3.12
9292
if: matrix.config == 'release'
9393
uses: actions/setup-python@v4
9494
with:
95-
python-version: '3.11'
95+
python-version: '3.12'
9696
check-latest: true
9797

9898
- name: Set up Visual Studio environment

.github/workflows/asan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
with:
3434
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
3535

36-
- name: Set up Python 3.11
36+
- name: Set up Python 3.12
3737
uses: actions/setup-python@v4
3838
with:
39-
python-version: '3.11'
39+
python-version: '3.12'
4040
check-latest: true
4141

4242
- name: Install missing software on ubuntu

.github/workflows/scriptcheck.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ jobs:
4848
runs-on: ubuntu-20.04
4949
strategy:
5050
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+
5256
fail-fast: false
5357

5458
steps:
@@ -97,25 +101,25 @@ jobs:
97101
python -m pip install psutil
98102
99103
- name: run Shellcheck
100-
if: matrix.python-version == '3.11'
104+
if: matrix.python-latest
101105
run: |
102106
find . -name "*.sh" | xargs shellcheck --exclude SC2002,SC2013,SC2034,SC2035,SC2043,SC2046,SC2086,SC2089,SC2090,SC2129,SC2211,SC2231
103107
104108
- name: run pylint
105-
if: matrix.python-version == '3.11'
109+
if: matrix.python-latest
106110
run: |
107111
echo "FIXME pylint is disabled for now because it fails to import files:"
108112
echo "FIXME addons/runaddon.py:1:0: E0401: Unable to import 'cppcheckdata' (import-error)"
109113
echo "FIXME addons/runaddon.py:1:0: E0401: Unable to import 'cppcheck' (import-error)"
110114
# pylint --rcfile=pylintrc_travis --jobs $(nproc) addons/*.py htmlreport/cppcheck-htmlreport htmlreport/*.py tools/*.py
111115
112116
- name: check .json files
113-
if: matrix.python-version == '3.11'
117+
if: matrix.python-latest
114118
run: |
115119
find . -name '*.json' | xargs -n 1 python -m json.tool > /dev/null
116120
117121
- name: Validate
118-
if: matrix.python-version == '3.11'
122+
if: matrix.python-latest
119123
run: |
120124
make -j$(nproc) validateCFG validatePlatforms validateRules
121125
@@ -177,7 +181,7 @@ jobs:
177181
PYTHONPATH: ./tools
178182

179183
- name: dmake
180-
if: matrix.python-version == '3.11'
184+
if: matrix.python-latest
181185
run: |
182186
make -j$(nproc) run-dmake
183187
git diff --exit-code

.github/workflows/tsan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
with:
3434
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
3535

36-
- name: Set up Python 3.11
36+
- name: Set up Python 3.12
3737
uses: actions/setup-python@v4
3838
with:
39-
python-version: '3.11'
39+
python-version: '3.12'
4040
check-latest: true
4141

4242
- name: Install missing software on ubuntu

.github/workflows/ubsan.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333
with:
3434
key: ${{ github.workflow }}-${{ github.job }}-${{ matrix.os }}
3535

36-
- name: Set up Python 3.11
36+
- name: Set up Python 3.12
3737
uses: actions/setup-python@v4
3838
with:
39-
python-version: '3.11'
39+
python-version: '3.12'
4040
check-latest: true
4141

4242
- name: Install missing software on ubuntu

0 commit comments

Comments
 (0)