Skip to content

Commit

Permalink
build: use also different K8s versions for E2E testing in 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 f56a131 commit 3d0bda2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,20 @@ jobs:
fi
test:
name: Test against Py ${{ matrix.python }}
name: Test against Py ${{ matrix.python }} and K8s ${{ matrix.kubernetes-version }}
runs-on: ubuntu-latest
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' }}
env:
FORCE_COLOR: "1"
IMG_ORG: kubeflow
Expand Down Expand Up @@ -124,8 +132,9 @@ jobs:
- name: Start Kind Cluster
uses: helm/[email protected]
with:
node_image: "kindest/node:v1.27.11"
node_image: kindest/node:${{ matrix.kubernetes-version }}
cluster_name: chart-testing-py-${{ matrix.python }}
kubectl_version: ${{ matrix.kubernetes-version }}
- name: Load Local Registry Test Image
env:
IMG: "${{ env.IMG_ORG }}/${{ env.IMG_REPO }}:${{ steps.tags.outputs.tag }}"
Expand Down

0 comments on commit 3d0bda2

Please sign in to comment.