diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 14f55246..6a73ac64 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -26,4 +26,20 @@ jobs: - name: Build docker image run: | - docker build -t banzai . + docker build -t banzai-e2e . + kind load docker-image banzai-e2e + + - name: Start banzai + run: | + # Replace w/ docker image just built + sed -i -e "s^@BANZAI_IMAGE@^banzai-e2e^g" banzai/tests/e2e-k8s.yaml + + # Deploy banzai stack + kubeclt apply -f banzai/tests/e2e-k8s.yaml + + # Wait for banzai to be ready + kubectl --for=condition=Ready --timeout=60m pod/banzai-e2e-test + + - name: Test Master Bias Creation + run: | + kubectl exec banzai-e2e-test -c banzai-listener -- pytest -s --pyargs banzai.tests --durations=0 --junitxml=/archive/engineering/pytest-master-bias.xml -m master_bias