Skip to content

Commit 75cc0fb

Browse files
Configure default Python version using integration-tests job environment
1 parent 9ca4937 commit 75cc0fb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/e2e-test.yml

Lines changed: 3 additions & 2 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
@@ -32,6 +31,8 @@ jobs:
3231
integration-tests:
3332
runs-on: ubuntu-latest
3433
env:
34+
DEFAULT_PYTHON_VERSION: "3.10"
35+
EOL_PYTHON_VERSION: "3.9"
3536
EXIT_STATUS: 0
3637
steps:
3738
- name: Clone Repository with SHA
@@ -52,7 +53,7 @@ jobs:
5253
- name: Setup Python
5354
uses: actions/setup-python@v5
5455
with:
55-
python-version: ${{ inputs.run-eol-python-version == 'true' && '3.9' || inputs.python-version }}
56+
python-version: ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }}
5657

5758
- name: Install Python deps
5859
run: pip install -U setuptools wheel boto3 certifi

0 commit comments

Comments
 (0)