-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 964 Bytes
/
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
name: model-testing
on: [push]
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.7.16
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: iterative/setup-cml@v1
- name: Train model
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CML: https://github.com/iterative/cml/releases/latest/download/cml-linux-x64
run: |
conda install dvc=2.11.0
dvc remote add data gdrive://1SSuE4GVQ5xjePujH0AGdXBVWXauanteG
dvc remote add images gdrive://1iYyv9QR9NK7XXVaN4IzFAtQPgDWdYYlY
dvc pull data
dvc pull images
pip install -e .
python core_analysis --train --test --do-augment
cat metrics.txt >> report.md
echo "![](./plot.png)" >> report.md
cml comment create report.md