Skip to content

Commit 9ca4937

Browse files
authored
test: Allow integration and unit tests to run against EOL or desired python version (linode#471)
* EOL python version updates * update wording * add workflow_dispatch input to specify python version
1 parent 7dacfcf commit 9ca4937

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/e2e-test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ on:
1111
description: 'The hash value of the commit'
1212
required: false
1313
default: ''
14+
python-version:
15+
description: 'Specify Python version to use'
16+
required: false
17+
default: '3.10'
18+
run-eol-python-version:
19+
description: 'Run EOL python version?'
20+
required: false
21+
default: 'false'
22+
type: choice
23+
options:
24+
- 'true'
25+
- 'false'
1426
push:
1527
branches:
1628
- main
@@ -40,7 +52,7 @@ jobs:
4052
- name: Setup Python
4153
uses: actions/setup-python@v5
4254
with:
43-
python-version: '3.x'
55+
python-version: ${{ inputs.run-eol-python-version == 'true' && '3.9' || inputs.python-version }}
4456

4557
- name: Install Python deps
4658
run: pip install -U setuptools wheel boto3 certifi

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
python-version: ['3.8','3.9','3.10','3.11', '3.12']
17+
python-version: ['3.9','3.10','3.11', '3.12']
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-python@v5

0 commit comments

Comments
 (0)