Major Changes - Fixed CI and Updated the model #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-CI | |
on: [push] | |
jobs: | |
train-and-report: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
repository-projects: write | |
container: docker://ghcr.io/iterative/cml:0-dvc2-base1 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Train model | |
env: | |
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
python train.py | |
# Create CML report | |
cat metrics.txt >> report.md | |
echo '![](./confmat.png "Confusion Matrix")' >> report.md | |
cml comment create report.md |