-
Notifications
You must be signed in to change notification settings - Fork 18
67 lines (55 loc) · 2.25 KB
/
e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: E2E Tests
on:
workflow_dispatch: {}
push: {}
jobs:
test:
runs-on:
- banzai-runner
steps:
- 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=host"
- 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
- 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
- name: Test Master Dark 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-dark.xml -m master_dark
- name: Test Master Flat 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-flat.xml -m master_flat
- name: Test Science File 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-science-files.xml -m science_files