forked from efiop/lstm_seq2seq
-
Notifications
You must be signed in to change notification settings - Fork 8
57 lines (46 loc) · 1.33 KB
/
cml.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
name: train
on:
workflow_dispatch:
inputs:
exp_run_args:
type: string
description: 'Any args to pass to dvc exp run'
required: true
permissions:
id-token: write
contents: write
pull-requests: write
jobs:
run:
environment: aws
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: iterative/setup-dvc@v1
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::342840881361:role/SandboxUser
role-duration-seconds: 3600
- name: train
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DVCLIVE_LOG_LEVEL: DEBUG
DVC_STUDIO_TOKEN: ${{ secrets.STUDIO_TOKEN }}
run: |
pip install --upgrade -r requirements.txt
git checkout $GITHUB_REF
dvc pull --allow-missing
dvc exp run --queue ${{ inputs.exp_run_args }}
dvc exp run --run-all
echo "GITHUB_SHA: $GITHUB_SHA"
echo "GITHUB_REF: $GITHUB_REF"
git status
dvc exp list -A
dvc exp show -A --no-pager
dvc exp push -v -A origin