mirror of
https://github.com/actions/setup-python.git
synced 2024-12-26 22:20:46 +00:00
tests(ci): check non-EOL pythons are available on all workers
This commit is contained in:
parent
a0d74c0c42
commit
30b4b62ea1
1 changed files with 24 additions and 0 deletions
24
.github/workflows/test-python.yml
vendored
24
.github/workflows/test-python.yml
vendored
|
@ -14,6 +14,30 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
check-non-eol-available: # non EOL versions of python shall be available on all workers
|
||||
name: non-eol ${{ matrix.python-version }} ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-11, macos-12, macos-13, macos-14, windows-2019, windows-2022, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, setup-actions-ubuntu-arm64-2-core, setup-actions-windows-arm64-4-core]
|
||||
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Python and check latest
|
||||
uses: ./
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Validate version
|
||||
run: |
|
||||
$pythonVersion = (python --version)
|
||||
if ("$pythonVersion" -NotMatch "${{ matrix.python-version }}"){
|
||||
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python-version }}"
|
||||
exit 1
|
||||
}
|
||||
$pythonVersion
|
||||
shell: pwsh
|
||||
|
||||
setup-versions-from-manifest:
|
||||
name: Setup ${{ matrix.python }} ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
Loading…
Reference in a new issue