Skip to content

Commit 659a28d

Browse files
Configure default Python version using workflow environment
1 parent 9ca4937 commit 659a28d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/e2e-test.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414
python-version:
1515
description: 'Specify Python version to use'
1616
required: false
17-
default: '3.10'
1817
run-eol-python-version:
1918
description: 'Run EOL python version?'
2019
required: false
@@ -28,11 +27,14 @@ on:
2827
- main
2928
- dev
3029

30+
env:
31+
DEFAULT_PYTHON_VERSION: "3.10"
32+
EOL_PYTHON_VERSION: "3.9"
33+
EXIT_STATUS: 0
34+
3135
jobs:
3236
integration-tests:
3337
runs-on: ubuntu-latest
34-
env:
35-
EXIT_STATUS: 0
3638
steps:
3739
- name: Clone Repository with SHA
3840
if: ${{ inputs.sha != '' }}
@@ -52,7 +54,7 @@ jobs:
5254
- name: Setup Python
5355
uses: actions/setup-python@v5
5456
with:
55-
python-version: ${{ inputs.run-eol-python-version == 'true' && '3.9' || inputs.python-version }}
57+
python-version: ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }}
5658

5759
- name: Install Python deps
5860
run: pip install -U setuptools wheel boto3 certifi

0 commit comments

Comments
 (0)