-
Notifications
You must be signed in to change notification settings - Fork 32
89 lines (87 loc) · 2.47 KB
/
ci.yml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: CI
on:
push:
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
jobs:
ci:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8.5
- name: Install Python dependencies
run: |
# FIX sergey https://github.com/mlcommons/mlcube/issues/360
# python -m pip install --upgrade pip
python -m pip install pip==24.0
pip install setuptools wheel
pip install -r ./requirements-test.txt
- name: Install MLCube
run: |
cd mlcube
python setup.py bdist_wheel
pip install dist/mlcube-*.whl
- name: Test MLCube CLI
run: |
cd mlcube
pytest
- name: Install MLCube Docker Runner
run: |
cd runners/mlcube_docker
python setup.py bdist_wheel
pip install dist/mlcube_docker-*.whl
- name: Test MLCube Docker CLI
run: |
cd runners/mlcube_docker
pytest
- name: Install MLCube Singularity Runner
run: |
cd runners/mlcube_singularity
python setup.py bdist_wheel
pip install dist/mlcube_singularity-*.whl
- name: Test MLCube Singularity CLI
run: |
cd runners/mlcube_singularity
pytest
- name: Install MLCube SSH Runner
run: |
cd runners/mlcube_ssh
python setup.py bdist_wheel
pip install dist/mlcube_ssh-*.whl
- name: Test MLCube SSH CLI
run: |
cd runners/mlcube_ssh
pytest
- name: Install MLCube Kubernetes Runner
run: |
cd runners/mlcube_k8s
python setup.py bdist_wheel
pip install dist/mlcube_k8s-*.whl
- name: Test MLCube Kubernetes CLI
run: |
cd runners/mlcube_k8s
pytest
- name: Install MLCube GCP Runner
run: |
cd runners/mlcube_gcp
python setup.py bdist_wheel
pip install dist/mlcube_gcp-*.whl
- name: Test MLCube GCP CLI
run: |
cd runners/mlcube_gcp
pytest
- name: Install MLCube Kubeflow Runner
run: |
cd runners/mlcube_kubeflow
python setup.py bdist_wheel
pip install dist/mlcube_kubeflow-*.whl
- name: Test MLCube Kubeflow CLI
run: |
cd runners/mlcube_kubeflow
pytest