Added base files. #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CML | |
on: [push] | |
jobs: | |
train-and-report: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: iterative/setup-cml@v1 | |
- uses: actions/checkout@v3 | |
- name: Train model | |
run: | | |
# Your ML workflow goes here | |
pip install -r requirements.txt | |
python train.py # generate plot.png | |
- name: Create CML report | |
env: | |
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
# Post CML report as a comment in GitHub | |
cat metrics.txt >> report.md | |
echo '![](./plot.png "Confusion Matrix")' >> report.md | |
cml comment create report.md | |