ci: add usage of Python version 3.13

This commit is contained in:
Felix Seifert 2024-10-09 15:09:08 +02:00
parent 19dfb7b659
commit ec7d9fbc17
No known key found for this signature in database
GPG Key ID: 2E471A4DD655C2D2
2 changed files with 17 additions and 9 deletions

View File

@ -64,6 +64,13 @@ jobs:
- name: Verify 3.12.4 - name: Verify 3.12.4
run: python __tests__/verify-python.py 3.12.4 run: python __tests__/verify-python.py 3.12.4
- name: Run with setup-python 3.13.0
uses: ./
with:
python-version: 3.13.0
- name: Verify 3.13.0
run: python __tests__/verify-python.py 3.13.0
- name: Run with setup-python 3.10 - name: Run with setup-python 3.10
id: cp310 id: cp310
uses: ./ uses: ./

View File

@ -21,7 +21,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3] python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
exclude: exclude:
- os: ubuntu-22.04 - os: ubuntu-22.04
python: 3.8.10 python: 3.8.10
@ -59,7 +59,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3] python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
exclude: exclude:
- os: ubuntu-22.04 - os: ubuntu-22.04
python: 3.8.10 python: 3.8.10
@ -100,7 +100,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3] python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
exclude: exclude:
- os: ubuntu-22.04 - os: ubuntu-22.04
python: 3.8.10 python: 3.8.10
@ -139,7 +139,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, '==3.12.3'] python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.0]
exclude: exclude:
- os: ubuntu-22.04 - os: ubuntu-22.04
python: 3.8.10 python: 3.8.10
@ -183,7 +183,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3] python: [3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
exclude: exclude:
- os: ubuntu-22.04 - os: ubuntu-22.04
python: 3.8.10 python: 3.8.10
@ -318,7 +318,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04]
python: ['3.8', '3.9', '3.10', '3.11', '3.12'] python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -342,7 +342,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest, windows-latest, macos-latest] os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Python and check latest - name: Setup Python and check latest
@ -377,12 +377,13 @@ jobs:
3.10 3.10
3.11 3.11
3.12 3.12
3.13
check-latest: true check-latest: true
- name: Validate version - name: Validate version
run: | run: |
$pythonVersion = (python --version) $pythonVersion = (python --version)
if ("$pythonVersion" -NotMatch "3.12"){ if ("$pythonVersion" -NotMatch "3.13"){
Write-Host "The current version is $pythonVersion; expected version is 3.12" Write-Host "The current version is $pythonVersion; expected version is 3.13"
exit 1 exit 1
} }
$pythonVersion $pythonVersion