forked from iterative/cml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
50 lines (42 loc) · 921 Bytes
/
.gitlab-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
stages:
- deploy
- test
deploy_job:
stage: deploy
when: always
image: dvcorg/cml
script:
- cml-runner
--cloud aws
--cloud-region us-west
--cloud-type g2.2xlarge
--cloud-spot
--labels=cml-runner-gpu
test_runner:
stage: test
when: on_success
tags:
- cml-runner-gpu
script:
- sudo update-alternatives --install /usr/bin/python python $(which python3) 10
- sudo apt-get update && sudo apt-get install -y python-pip python3-pip
- sudo pip install --upgrade pip
- sudo pip install --upgrade setuptools
- sudo pip install tensorboard
- npm ci
- npm run lint
- npm run test
- nvidia-smi
test_container:
stage: test
when: on_success
tags:
- cml-runner-gpu
image: dvcorg/cml-py3:latest
script:
- dvc --version
- pip install tensorboard
- npm ci
- npm run lint
- npm run test
- nvidia-smi