Skip to content

Commit d9cfe9c

Browse files
committed
Add/update Python version to 3.12 in GitHub workflows
The explicit Python version in release and test workflows has been updated from 3.11 to 3.12. This includes updates in pre-commit, safety, tests, and doc-build sessions across different operating systems. The changes allow these sessions to use the newer version of Python for task execution.
1 parent a342745 commit d9cfe9c

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v5
2121
with:
22-
python-version: "3.11"
22+
python-version: "3.12"
2323

2424
- name: Upgrade pip
2525
run: |

.github/workflows/tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
include:
15-
- { python: "3.11", os: "ubuntu-latest", session: "pre-commit" }
16-
- { python: "3.11", os: "ubuntu-latest", session: "safety" }
15+
- { python: "3.12", os: "ubuntu-latest", session: "pre-commit" }
16+
- { python: "3.12", os: "ubuntu-latest", session: "safety" }
1717
# - { python: "3.11", os: "ubuntu-latest", session: "mypy" }
1818
# - { python: "3.10", os: "ubuntu-latest", session: "mypy" }
1919
# - { python: "3.9", os: "ubuntu-latest", session: "mypy" }
20+
- { python: "3.12", os: "ubuntu-latest", session: "tests" }
2021
- { python: "3.11", os: "ubuntu-latest", session: "tests" }
2122
- { python: "3.10", os: "ubuntu-latest", session: "tests" }
2223
- { python: "3.9", os: "ubuntu-latest", session: "tests" }
23-
- { python: "3.11", os: "windows-latest", session: "tests" }
24-
- { python: "3.11", os: "macos-latest", session: "tests" }
24+
- { python: "3.12", os: "windows-latest", session: "tests" }
25+
- { python: "3.12", os: "macos-latest", session: "tests" }
2526
# - { python: "3.11", os: "ubuntu-latest", session: "typeguard" }
2627
# - { python: "3.10", os: "ubuntu-latest", session: "typeguard" }
2728
# - { python: "3.10", os: "ubuntu-latest", session: "xdoctest" }
28-
- { python: "3.11", os: "ubuntu-latest", session: "docs-build" }
29+
- { python: "3.12", os: "ubuntu-latest", session: "docs-build" }
2930

3031
env:
3132
NOXSESSION: ${{ matrix.session }}

0 commit comments

Comments
 (0)