Skip to content

Commit

Permalink
refactor matrix GHA
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Mortari <[email protected]>
  • Loading branch information
tarilabs committed Dec 16, 2024
1 parent 5cddf56 commit 7bf5582
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,19 @@ jobs:
strategy:
fail-fast: false
matrix:
python: ["3.12", "3.11", "3.10", "3.9"]
kubernetes-version: ["v1.27.11"]
include: # on main merges (not PRs), use also different K8s versions for E2E testing
- python: "3.12"
kubernetes-version: ${{ github.event_name == 'push' && 'v1.28.7' }}
- python: "3.12"
kubernetes-version: ${{ github.event_name == 'push' && 'v1.29.2' }}
- python: "3.12"
kubernetes-version: ${{ github.event_name == 'push' && 'v1.30.6' }}
exclude:
- kubernetes-version: 'false'
python: ["3.12"] # see below for versions 3.9-3.11
kubernetes-version: ["v1.27.11", "v1.28.7", "v1.29.2", "v1.30.6"]
exclude: # on main merges (not PRs), use also different K8s versions for E2E testing
- kubernetes-version: ${{ github.event_name != 'push' && 'v1.28.7' }}
- kubernetes-version: ${{ github.event_name != 'push' && 'v1.29.2' }}
- kubernetes-version: ${{ github.event_name != 'push' && 'v1.30.6' }}
include: # test Py versions only with a reference K8s version, designated currently to kubernetes-version: v1.27.11
- python: "3.11"
kubernetes-version: "v1.27.11"
- python: "3.10"
kubernetes-version: "v1.27.11"
- python: "3.9"
kubernetes-version: "v1.27.11"
env:
FORCE_COLOR: "1"
IMG_ORG: kubeflow
Expand Down

0 comments on commit 7bf5582

Please sign in to comment.