Skip to content

Commit

Permalink
cleanup gitlab workflow (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored Oct 26, 2021
1 parent 6f437b3 commit 99dce95
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 31 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/checkbot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,21 @@ jobs:
cml-send-comment report.md
cml-send-github-check report.md
cml-runner \
--cloud-spot \
--cloud azure \
--cloud-region eastus \
--cloud-type Standard_NC6 \
--idle-timeout 3600 \
--labels cml-runner-az-gpu
cml runner \
--cloud-spot \
--cloud=azure \
--cloud-region=eastus \
--cloud-type=Standard_NC6 \
--idle-timeout=3600 \
--labels=cml-runner-az-gpu
cml-runner \
--cloud-spot \
--cloud aws \
--cloud-region us-west \
--cloud-type g2.2xlarge \
--idle-timeout 3600 \
--labels cml-runner-aws-gpu
--cloud-spot \
--cloud aws \
--cloud-region us-west \
--cloud-type g2.2xlarge \
--idle-timeout 3600 \
--labels cml-runner-aws-gpu
test_machine_aws:
needs: check-container
runs-on: [self-hosted, cml-runner-aws-gpu]
Expand Down
32 changes: 14 additions & 18 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
stages:
- deploy
- test

deploy_job:
stage: deploy
when: always
image: iterativeai/cml:0-dvc2-base1-gpu
deploy-runner:
image: iterativeai/cml:0-dvc2-base1
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
- |
cml runner \
--cloud=aws \
--cloud-region=us-west \
--cloud-type=g2.2xlarge \
--cloud-spot \
--labels=cml-runner-gpu
test-runner:
needs: [deploy-runner]
tags:
- cml-runner-gpu
script:
Expand All @@ -23,15 +20,14 @@ test_runner:
- npm run test

- nvidia-smi

test_container:
stage: test
when: on_success
test-container:
needs: [deploy-runner]
tags:
- cml-runner-gpu
image: iterativeai/cml:0-dvc2-base1-gpu
script:
- dvc --version
- cml --version
- pip install tensorboard

- npm ci
Expand Down

1 comment on commit 99dce95

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Comment

CML watermark

Please sign in to comment.