mirror of
https://github.com/actions/setup-python.git
synced 2025-07-19 05:28:22 +02:00
Modified workflows to enhance the testing in accordance with latest changes
This commit is contained in:
parent
d1c8c01178
commit
7234b81688
5 changed files with 135 additions and 40 deletions
101
.github/workflows/test-python.yml
vendored
101
.github/workflows/test-python.yml
vendored
|
@ -24,12 +24,21 @@ jobs:
|
|||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
ubuntu-latest,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
exclude:
|
||||
- os: ubuntu-22.04
|
||||
python: '3.8.10'
|
||||
- os: ubuntu-latest
|
||||
python: '3.8.10'
|
||||
- os: macos-latest
|
||||
python: '3.8.18'
|
||||
- os: windows-latest
|
||||
python: '3.8.18'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -67,12 +76,21 @@ jobs:
|
|||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
ubuntu-latest,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
exclude:
|
||||
- os: ubuntu-22.04
|
||||
python: '3.8.10'
|
||||
- os: ubuntu-latest
|
||||
python: '3.8.10'
|
||||
- os: macos-latest
|
||||
python: '3.8.18'
|
||||
- os: windows-latest
|
||||
python: '3.8.18'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -113,12 +131,21 @@ jobs:
|
|||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
ubuntu-latest,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
exclude:
|
||||
- os: ubuntu-22.04
|
||||
python: '3.8.10'
|
||||
- os: ubuntu-latest
|
||||
python: '3.8.10'
|
||||
- os: macos-latest
|
||||
python: '3.8.18'
|
||||
- os: windows-latest
|
||||
python: '3.8.18'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -157,12 +184,21 @@ jobs:
|
|||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
ubuntu-latest,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.0]
|
||||
python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.0]
|
||||
exclude:
|
||||
- os: ubuntu-22.04
|
||||
python: '3.8.10'
|
||||
- os: ubuntu-latest
|
||||
python: '3.8.10'
|
||||
- os: macos-latest
|
||||
python: '3.8.18'
|
||||
- os: windows-latest
|
||||
python: '3.8.18'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -206,12 +242,21 @@ jobs:
|
|||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
ubuntu-latest,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
python: [3.8.10, 3.8.18, 3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0]
|
||||
exclude:
|
||||
- os: ubuntu-22.04
|
||||
python: '3.8.10'
|
||||
- os: ubuntu-latest
|
||||
python: '3.8.10'
|
||||
- os: macos-latest
|
||||
python: '3.8.18'
|
||||
- os: windows-latest
|
||||
python: '3.8.18'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -255,7 +300,7 @@ jobs:
|
|||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
ubuntu-latest,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
|
@ -293,7 +338,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -321,7 +366,7 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
os: [ubuntu-latest, ubuntu-22.04, ubuntu-20.04]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -354,12 +399,12 @@ jobs:
|
|||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
ubuntu-latest,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python: ['3.11', '3.12', '3.13']
|
||||
python: ['3.8', '3.9', '3.11', '3.12', '3.13']
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
@ -386,12 +431,27 @@ jobs:
|
|||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
ubuntu-latest,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
]
|
||||
python-version: ['3.11', '3.12', '3.13']
|
||||
python: ['3.8', '3.9', '3.11', '3.12', '3.13']
|
||||
exclude:
|
||||
- os: macos-latest
|
||||
python: '3.8'
|
||||
- os: windows-latest
|
||||
python: '3.8'
|
||||
- os: macos-latest
|
||||
python: '3.9'
|
||||
- os: windows-latest
|
||||
python: '3.9'
|
||||
- os: macos-latest
|
||||
python: '3.11'
|
||||
- os: macos-13
|
||||
python: '3.11'
|
||||
- os: windows-latest
|
||||
python: '3.11'
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python and check latest
|
||||
|
@ -418,7 +478,7 @@ jobs:
|
|||
[
|
||||
ubuntu-20.04,
|
||||
ubuntu-22.04,
|
||||
ubuntu-24.04,
|
||||
ubuntu-latest,
|
||||
windows-latest,
|
||||
macos-latest,
|
||||
macos-13
|
||||
|
@ -429,15 +489,14 @@ jobs:
|
|||
uses: ./
|
||||
with:
|
||||
python-version: |
|
||||
3.11
|
||||
3.12
|
||||
3.13
|
||||
check-latest: true
|
||||
- name: Validate version
|
||||
run: |
|
||||
$pythonVersion = (python --version)
|
||||
if ("$pythonVersion" -NotMatch "3.13"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is 3.13"
|
||||
if ("$pythonVersion" -NotMatch "3.12"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is 3.12"
|
||||
exit 1
|
||||
}
|
||||
$pythonVersion
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue