forked from elleobrien/wine
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.06 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
name: model-wine-quality
on: [push]
jobs:
run:
runs-on: ubuntu-latest
# optionally use a convenient Ubuntu LTS + DVC + CML image
# container: ghcr.io/iterative/cml:0-dvc2-base1
steps:
- uses: actions/checkout@v3
# may need to setup NodeJS & Python3 on e.g. self-hosted
# - uses: actions/setup-node@v3
# with:
# node-version: '16'
# - uses: actions/setup-python@v4
# with:
# python-version: '3.x'
- uses: iterative/setup-cml@v1
- name: Train model
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Your ML workflow goes here
pip install -r requirements.txt
python train.py
echo "## MODEL METRICS" > report.md
cat metrics.txt >> report.md
# Add images to the report
echo "![Feature Importance](feature_importance.png)" >> report.md
echo "![Residuals](residuals.png)" >> report.md
# Create a comment with the report using CML
cml comment report.md