-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1.01 KB
/
model-training.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
name: model-training
on:
push:
# paths:
# - 'model-cicd-pipeline/**'
jobs:
run:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./model-cicd-pipeline/model-train-cml-report
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: iterative/setup-cml@v1
- name: Install packages
run: |
pip install -r requirements.txt
- name: Train model
run: |
python train.py
- name: Write CML report
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "# MODEL METRICS" > report.md
cat metrics.txt >> report.md
echo "## Data viz" >> report.md
echo "" >> report.md
echo "" >> report.md
cml comment create report.md