mirror of
https://github.com/actions/setup-python.git
synced 2024-11-25 01:38:56 +00:00
ci: add usage of Python version 3.13
This commit is contained in:
parent
19dfb7b659
commit
ec7d9fbc17
2 changed files with 17 additions and 9 deletions
7
.github/workflows/e2e-tests.yml
vendored
7
.github/workflows/e2e-tests.yml
vendored
|
@ -64,6 +64,13 @@ jobs:
|
|||
- name: Verify 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
|
||||
id: cp310
|
||||
uses: ./
|
||||
|
|
19
.github/workflows/test-python.yml
vendored
19
.github/workflows/test-python.yml
vendored
|
@ -21,7 +21,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
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:
|
||||
- os: ubuntu-22.04
|
||||
python: 3.8.10
|
||||
|
@ -59,7 +59,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
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:
|
||||
- os: ubuntu-22.04
|
||||
python: 3.8.10
|
||||
|
@ -100,7 +100,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
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:
|
||||
- os: ubuntu-22.04
|
||||
python: 3.8.10
|
||||
|
@ -139,7 +139,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
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:
|
||||
- os: ubuntu-22.04
|
||||
python: 3.8.10
|
||||
|
@ -183,7 +183,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
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:
|
||||
- os: ubuntu-22.04
|
||||
python: 3.8.10
|
||||
|
@ -318,7 +318,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
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:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -342,7 +342,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
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:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python and check latest
|
||||
|
@ -377,12 +377,13 @@ jobs:
|
|||
3.10
|
||||
3.11
|
||||
3.12
|
||||
3.13
|
||||
check-latest: true
|
||||
- name: Validate version
|
||||
run: |
|
||||
$pythonVersion = (python --version)
|
||||
if ("$pythonVersion" -NotMatch "3.12"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is 3.12"
|
||||
if ("$pythonVersion" -NotMatch "3.13"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is 3.13"
|
||||
exit 1
|
||||
}
|
||||
$pythonVersion
|
||||
|
|
Loading…
Reference in a new issue