Skip to content

Commit

Permalink
test: Allow integration and unit tests to run against EOL or desired …
Browse files Browse the repository at this point in the history
…python version (#674)
  • Loading branch information
ykim-akamai authored Nov 14, 2024
1 parent 590d99a commit 3ea0dd6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/e2e-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,27 @@ on:
pull_request_number:
description: 'The number of the PR. Ensure sha value is provided'
required: false
python-version:
description: 'Specify Python version to use'
required: false
run-eol-python-version:
description: 'Run EOL python version?'
required: false
default: 'false'
type: choice
options:
- 'true'
- 'false'
push:
branches:
- main
- dev

env:
DEFAULT_PYTHON_VERSION: "3.10"
EOL_PYTHON_VERSION: "3.8"
EXIT_STATUS: 0

jobs:
integration_tests:
name: Run integration tests on Ubuntu
Expand Down Expand Up @@ -74,7 +90,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }}

- name: Install Python dependencies and update cert
run: |
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
jobs:
unit-tests-on-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.9','3.10','3.11', '3.12' ]
steps:
- name: Clone Repository
uses: actions/checkout@v3
Expand All @@ -14,9 +17,9 @@ jobs:
run: sudo apt-get update -y

- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'
python-version: ${{ matrix.python-version }}

- name: Install Python wheel
run: pip install wheel boto3
Expand Down

0 comments on commit 3ea0dd6

Please sign in to comment.