debug #36
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E Tests | |
on: | |
workflow_dispatch: {} | |
push: {} | |
jobs: | |
test: | |
runs-on: | |
- banzai-runner | |
steps: | |
- name: Env | |
run: env | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install nix | |
uses: cachix/install-nix-action@v24 | |
with: | |
extra_nix_config: | | |
accept-flake-config = true | |
- name: Setup cachix | |
uses: cachix/cachix-action@v12 | |
with: | |
name: lco-public | |
extraPullNames: devenv | |
skipPush: true | |
- name: Expose GitHub Runtime | |
uses: crazy-max/ghaction-github-runtime@v3 | |
- name: Start Kind cluster | |
shell: nix develop --impure --command bash -e {0} | |
run: | | |
kind-create-cluster | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
with: | |
driver-opts: "network=kind" | |
- name: Deploy Banzai w/ Skaffold | |
env: | |
SKAFFOLD_BUILDX_ARGS: "--cache-to type=gha,mode=max,ignore-error=true --cache-from type=gha" | |
shell: nix develop --impure --command bash -e {0} | |
run: | | |
docker ps | |
skaffold -p e2e run --default-repo kind-registry:5000 --insecure-registry "kind-registry" | |
- name: Test Master Bias Creation | |
shell: nix develop --impure --command bash -e {0} | |
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 |