mirror of https://github.com/actions/setup-python
updated versions and os
This commit is contained in:
parent
80ab5a6221
commit
d1c8c01178
|
@ -22,7 +22,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python-version: ['3.9', 'pypy-3.9-v7.x']
|
||||
python-version: ['3.10', 'pypy-3.10-v7.x']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python
|
||||
|
@ -40,7 +40,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python-version: ['3.9', 'pypy-3.9-v7.x']
|
||||
python-version: ['3.10', 'pypy-3.10-v7.x']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python
|
||||
|
@ -76,7 +76,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python-version: ['3.9', 'pypy-3.9']
|
||||
python-version: ['3.10', 'pypy-3.10']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Install poetry
|
||||
|
@ -98,7 +98,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python-version: ['3.9', 'pypy-3.9-v7.x']
|
||||
python-version: ['3.10', 'pypy-3.10-v7.x']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python
|
||||
|
@ -117,7 +117,7 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python-version: ['3.9', 'pypy-3.9-v7.x']
|
||||
python-version: ['3.10', 'pypy-3.10-v7.x']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python
|
||||
|
|
|
@ -18,18 +18,18 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
operating-system:
|
||||
[ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run with setup-python 3.12
|
||||
uses: ./
|
||||
with:
|
||||
python-version: 3.12
|
||||
- name: Verify 3.12
|
||||
run: python __tests__/verify-python.py 3.12
|
||||
|
||||
- name: Run with setup-python 3.9.13
|
||||
uses: ./
|
||||
with:
|
||||
|
@ -51,12 +51,19 @@ jobs:
|
|||
- name: Verify 3.11.9
|
||||
run: python __tests__/verify-python.py 3.11.9
|
||||
|
||||
- name: Run with setup-python 3.12.4
|
||||
- name: Run with setup-python 3.12.7
|
||||
uses: ./
|
||||
with:
|
||||
python-version: 3.12.4
|
||||
- name: Verify 3.12.4
|
||||
run: python __tests__/verify-python.py 3.12.4
|
||||
python-version: 3.12.7
|
||||
- name: Verify 3.12.7
|
||||
run: python __tests__/verify-python.py 3.12.7
|
||||
|
||||
- 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.11.9
|
||||
id: cp311
|
||||
|
@ -68,12 +75,12 @@ jobs:
|
|||
- name: Run python-path sample 3.11.9
|
||||
run: pipx run --python '${{ steps.cp311.outputs.python-path }}' nox --version
|
||||
|
||||
- name: Run with setup-python ==3.12
|
||||
- name: Run with setup-python ==3.13
|
||||
uses: ./
|
||||
with:
|
||||
python-version: '==3.12'
|
||||
- name: Verify ==3.12
|
||||
run: python __tests__/verify-python.py 3.12
|
||||
python-version: '==3.13'
|
||||
- name: Verify ==3.13
|
||||
run: python __tests__/verify-python.py 3.13
|
||||
|
||||
- name: Run with setup-python <3.13
|
||||
uses: ./
|
||||
|
|
|
@ -18,10 +18,10 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, macos-13]
|
||||
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-latest, macos-13]
|
||||
graalpy:
|
||||
- 'graalpy-23.0'
|
||||
- 'graalpy-22.3'
|
||||
- 'graalpy-24.1'
|
||||
- 'graalpy-23.1'
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -63,8 +63,8 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, macos-13]
|
||||
graalpy: ['graalpy23.0', 'graalpy22.3']
|
||||
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-latest, macos-13]
|
||||
graalpy: ['graalpy24.1', 'graalpy23.1']
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -88,14 +88,14 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, macos-13]
|
||||
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, macos-latest, macos-13]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup GraalPy and check latest
|
||||
uses: ./
|
||||
id: graalpy
|
||||
with:
|
||||
python-version: 'graalpy-23.x'
|
||||
python-version: 'graalpy-24.x'
|
||||
check-latest: true
|
||||
- name: GraalPy and Python version
|
||||
run: python --version
|
||||
|
|
|
@ -20,7 +20,15 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
pypy:
|
||||
- 'pypy-2.7'
|
||||
- 'pypy-3.10'
|
||||
|
|
|
@ -20,8 +20,16 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3]
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -55,8 +63,16 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3]
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -93,8 +109,16 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3]
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -129,8 +153,16 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, '==3.12.3']
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.0]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -170,8 +202,16 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3]
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -211,7 +251,15 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -302,8 +350,16 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python: ['3.11', '3.12']
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: ['3.11', '3.12', '3.13']
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -326,8 +382,16 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
python-version: ['3.11', '3.12']
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python-version: ['3.11', '3.12', '3.13']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python and check latest
|
||||
|
@ -350,7 +414,15 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest, macos-13]
|
||||
os:
|
||||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python and check latest
|
||||
|
@ -359,12 +431,13 @@ jobs:
|
|||
python-version: |
|
||||
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 New Issue