Skip to content

Commit eaa9389

Browse files
Enhance e2e-tests with additional Python versions
Added multiple Python version setups and verifications to the workflow.
1 parent 31823b4 commit eaa9389

File tree

1 file changed

+57
-19
lines changed

1 file changed

+57
-19
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 57 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,6 @@ jobs:
2727
macos-latest,
2828
macos-15-intel
2929
]
30-
python-version:
31-
[
32-
3.9.13,
33-
3.10.11,
34-
3.11.9,
35-
3.12.7,
36-
3.13.0,
37-
3.13
38-
]
3930
steps:
4031
- name: Checkout
4132
uses: actions/checkout@v5
@@ -44,23 +35,70 @@ jobs:
4435
if: runner.os == 'Windows'
4536
run: python -m pip install pipx
4637

47-
- name: Run with setup-python ${{ matrix.python-version }}
38+
- name: Run with setup-python 3.9.13
39+
uses: ./
40+
with:
41+
python-version: 3.9.13
42+
- name: Verify 3.9.13
43+
run: python __tests__/verify-python.py 3.9.13
44+
45+
- name: Run with setup-python 3.10.11
46+
uses: ./
47+
with:
48+
python-version: 3.10.11
49+
- name: Verify 3.10.11
50+
run: python __tests__/verify-python.py 3.10.11
51+
52+
- name: Run with setup-python 3.11.9
53+
uses: ./
54+
with:
55+
python-version: 3.11.9
56+
- name: Verify 3.11.9
57+
run: python __tests__/verify-python.py 3.11.9
58+
59+
- name: Run with setup-python 3.12.7
4860
uses: ./
4961
with:
50-
python-version: ${{ matrix.python-version }}
62+
python-version: 3.12.7
63+
- name: Verify 3.12.7
64+
run: python __tests__/verify-python.py 3.12.7
5165

52-
- name: Verify ${{ matrix.python-version }}
53-
run: python __tests__/verify-python.py ${{ matrix.python-version }}
66+
- name: Run with setup-python 3.13.0
67+
uses: ./
68+
with:
69+
python-version: 3.13.0
70+
- name: Verify 3.13.0
71+
run: python __tests__/verify-python.py 3.13.0
5472

73+
- name: Run with setup-python 3.13
74+
id: cp313
75+
uses: ./
76+
with:
77+
python-version: '3.13'
78+
- name: Verify 3.13
79+
run: python __tests__/verify-python.py 3.13
5580
- name: Run python-path sample 3.13
56-
if: matrix.python-version == '3.13'
57-
run: pipx run --python $(which python) nox --version
58-
shell: bash
59-
env:
60-
PIPX_HOME: '${{ runner.temp }}/pipx'
61-
PIPX_BIN_DIR: '${{ runner.temp }}/pipx/bin'
81+
run: pipx run --python '${{ steps.cp313.outputs.python-path }}' nox --version
82+
83+
- name: Run with setup-python ==3.13
84+
uses: ./
85+
with:
86+
python-version: '==3.13'
87+
- name: Verify ==3.13
88+
run: python __tests__/verify-python.py 3.13
89+
90+
- name: Run with setup-python <3.13
91+
uses: ./
92+
with:
93+
python-version: '<3.13'
94+
- name: Verify <3.13
95+
run: python __tests__/verify-python.py 3.12
6296

6397
- name: Test Raw Endpoint Access
6498
run: |
6599
curl -L https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json | jq empty
66100
shell: bash
101+
102+
103+
104+

0 commit comments

Comments
 (0)