Skip to content

Commit 4e7bed9

Browse files
committed
Added self-hosted test gpu
1 parent b47a18c commit 4e7bed9

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI-Test in AWS for GPU
2+
3+
on: [push]
4+
5+
jobs:
6+
deploy-runner:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: iterative/setup-cml@v1
10+
- uses: actions/checkout@v3
11+
- name: Deploy runner on EC2
12+
env:
13+
REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
14+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
15+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
16+
run: |
17+
cml runner \
18+
--cloud=aws \
19+
--cloud-region=us-west \
20+
--cloud-type=g4dn.xlarge \
21+
--labels=cml-gpu
22+
train-model:
23+
needs: deploy-runner
24+
runs-on: [self-hosted, cml-gpu]
25+
timeout-minutes: 4320 # 72h
26+
container:
27+
image: docker://iterativeai/cml:0-dvc2-base1-gpu
28+
options: --gpus all
29+
steps:
30+
- uses: actions/checkout@v3
31+
- name: Run test singularity containers with GPU
32+
env:
33+
REPO_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
34+
run: |
35+
pip install -r requirements_test.txt
36+
pytest -sv tests/test_singularity_containers.py::test_kilosort3

0 commit comments

Comments
 (0)