Skip to content

Commit 7fd41fa

Browse files
committed
Add e2e workflows for release-17.0
Signed-off-by: Nabarun Pal <[email protected]>
1 parent 82515e4 commit 7fd41fa

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
kind: Cluster
2+
apiVersion: kind.x-k8s.io/v1alpha4
3+
nodes:
4+
- role: control-plane
5+
image: kindest/node:v1.17.17@sha256:66f1d0d91a88b8a001811e2f1054af60eef3b669a9a74f9b6db871f2f1eeed00
6+
- role: worker
7+
image: kindest/node:v1.17.17@sha256:66f1d0d91a88b8a001811e2f1054af60eef3b669a9a74f9b6db871f2f1eeed00
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: End to End Tests - release-17.0
2+
3+
on:
4+
push:
5+
branches:
6+
- release-17.0
7+
pull_request:
8+
- release-17.0
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
submodules: true
20+
- name: Create Kind Cluster
21+
uses: helm/[email protected]
22+
with:
23+
cluster_name: kubernetes-python-e2e-release-17.0-${{ matrix.python-version }}
24+
# The kind version to be used to spin the cluster up
25+
# this needs to be updated whenever a new Kind version is released
26+
version: v0.11.1
27+
# Update the config here whenever a new client snapshot is performed
28+
# This would eventually point to cluster with the latest Kubernetes version
29+
# as we sync with Kubernetes upstream
30+
config: .github/workflows/e2e/kind-configs/cluster-1.17.yaml
31+
- name: Set up Python ${{ matrix.python-version }}
32+
uses: actions/[email protected]
33+
with:
34+
python-version: ${{ matrix.python-version }}
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade pip
38+
python -m pip install -r requirements.txt
39+
python -m pip install -r test-requirements.txt
40+
- name: Install package
41+
run: python -m pip install -e .
42+
- name: Run End to End tests
43+
run: pytest -vvv -s kubernetes/e2e_test

0 commit comments

Comments
 (0)