-
Notifications
You must be signed in to change notification settings - Fork 26
62 lines (60 loc) · 1.88 KB
/
integration-test.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
on:
push:
pull_request:
env:
IMAGE: localhost:5001/kepler_model_server:devel
jobs:
run-integration:
runs-on: ubuntu-20.04
steps:
- name: use Kepler action to deploy cluster
uses: sustainable-computing-io/[email protected]
with:
runningBranch: kind
cluster_provider: kind
local_dev_cluster_version: v0.0.3
- name: load latest kepler image
run: |
docker pull quay.io/sustainable_computing_io/kepler:latest
kind load docker-image quay.io/sustainable_computing_io/kepler:latest
- name: checkout
uses: actions/checkout@v3
- name: set up QEMU
uses: docker/setup-qemu-action@v2
- name: set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: build Kepler model server and test image and push to local registry
run: make build build-test push push-test
- name: set up Kustomize
run: |
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash
chmod +x kustomize
mv kustomize /usr/local/bin/
- name: test deploying kepler with only estimator
run: |
make deploy
make e2e-test
make cleanup
env:
OPTS: "ESTIMATOR"
- name: test deploying dummy kepler with only estimator
run: |
make deploy
make e2e-test
make cleanup
env:
OPTS: "ESTIMATOR TEST"
- name: test deploying dummy kepler with only server
run: |
make deploy
make e2e-test
make cleanup
env:
OPTS: "SERVER TEST"
- name: test deploying dummy kepler with estimator and model server
run: |
make deploy
make e2e-test
make cleanup
env:
OPTS: "ESTIMATOR SERVER TEST"