-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (57 loc) · 2.21 KB
/
python.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
68
name: python metrics-operator
on:
pull_request: []
jobs:
test-python:
name: test
runs-on: ubuntu-latest
strategy:
fail-fast: false
# Tests in Python examples/python/run-metric.py
matrix:
test: [["perf-sysstat", "ghcr.io/converged-computing/metric-sysstat:latest", 60, ""], # performance test
["io-host-volume", "ghcr.io/converged-computing/metric-sysstat:latest", 60, ""], # storage test
["app-amg", "ghcr.io/converged-computing/metric-amg:latest", 60, "--iter 1"], # standalone app test
["app-lammps", "ghcr.io/converged-computing/metric-lammps:latest", 60, "--iter 1"]] # standalone app test
steps:
- uses: actions/checkout@v3
- name: Setup Python
run: conda create --quiet --name mo black
- name: Install Library
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate mo
cd sdk/python/v1alpha1
pip install .
pip install seaborn pandas
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ^1.20
- name: Start minikube
uses: medyagh/setup-minikube@697f2b7aaed5f70bf2a94ee21a4ec3dde7b12f92 # v0.0.9
- name: Pull Docker Containers to MiniKube
env:
container: ${{ matrix.test[1] }}
test: ${{ matrix[0] }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
export SHELL=/bin/bash
eval $(minikube -p minikube docker-env)
minikube ssh docker pull ${container}
make deploy-local
minikube image load ghcr.io/converged-computing/metrics-operator:test
kubectl apply -f examples/dist/metrics-operator-local.yaml
- name: Install JobSet
run: |
VERSION=v0.2.0
kubectl apply --server-side -f https://github.com/kubernetes-sigs/jobset/releases/download/$VERSION/manifests.yaml
- name: Python Test ${{ matrix.test[0] }}
env:
name: ${{ matrix.test[0] }}
jobtime: ${{ matrix.test[2] }}
args: ${{ matrix.test[3] }}
run: |
export PATH="/usr/share/miniconda/bin:$PATH"
source activate mo
python ./examples/python/${name}/run-metric.py --sleep ${jobtime} --test ${args}