Skip to content

Commit fea4fca

Browse files
committed
Add GitHub Action workflow for running e2e tests
The e2e here uses kind. The eventual goal would be to remove the use of minikube completely and use kind exclusively in conformance to general Kubernetes upstream usage. Signed-off-by: Nabarun Pal <[email protected]>
1 parent 44b2325 commit fea4fca

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/e2e.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: End to End Tests
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [3.6, 3.7, 3.8, 3.9]
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
submodules: true
15+
- name: Create Kind Cluster
16+
uses: helm/[email protected]
17+
with:
18+
cluster_name: kubernetes-python-e2e-18.0-${{ matrix.python-version }}
19+
version: v0.11.1
20+
config: .github/workflows/configs/cluster-1.18.yaml
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/[email protected]
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
python -m pip install -r requirements.txt
29+
python -m pip install -r test-requirements.txt
30+
- name: Install package
31+
run: python -m pip install -e .
32+
- name: Run End to End tests
33+
run: pytest -vvv -s kubernetes/e2e_test

0 commit comments

Comments
 (0)