python/.github/workflows/e2e-master.yaml
Nabarun Pal 5718898a83
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.

- Add kind cluster configs for all supported Kubernetes versions
- Add GH Action workflows for end to end testing

Signed-off-by: Nabarun Pal <pal.nabarun95@gmail.com>
2021-06-06 12:05:00 +05:30

45 lines
1.4 KiB
YAML

name: End to End Tests - master
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Create Kind Cluster
uses: helm/kind-action@v1.1.0
with:
cluster_name: kubernetes-python-e2e-master-${{ matrix.python-version }}
# The kind version to be used to spin the cluster up
# this needs to be updated whenever a new Kind version is released
version: v0.11.1
# Update the config here whenever a new client snapshot is performed
# This would eventually point to cluster with the latest Kubernetes version
# as we sync with Kubernetes upstream
config: .github/workflows/kind-configs/cluster-1.18.yaml
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2.1.3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r test-requirements.txt
- name: Install package
run: python -m pip install -e .
- name: Run End to End tests
run: pytest -vvv -s kubernetes/e2e_test