Skip to content

Commit 30b4b62

Browse files
committed
tests(ci): check non-EOL pythons are available on all workers
1 parent a0d74c0 commit 30b4b62

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: .github/workflows/test-python.yml

+24
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,30 @@ on:
1414
workflow_dispatch:
1515

1616
jobs:
17+
check-non-eol-available: # non EOL versions of python shall be available on all workers
18+
name: non-eol ${{ matrix.python-version }} ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
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]
24+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Setup Python and check latest
28+
uses: ./
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
- name: Validate version
32+
run: |
33+
$pythonVersion = (python --version)
34+
if ("$pythonVersion" -NotMatch "${{ matrix.python-version }}"){
35+
Write-Host "The current version is $pythonVersion; expected version is ${{ matrix.python-version }}"
36+
exit 1
37+
}
38+
$pythonVersion
39+
shell: pwsh
40+
1741
setup-versions-from-manifest:
1842
name: Setup ${{ matrix.python }} ${{ matrix.os }}
1943
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)