fix: Update action versions #2
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: model-training | |
on: [push] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
- uses: iterative/setup-cml@v1 | |
- name: Train model | |
env: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
pip install -r requirements.txt | |
python get_data.py | |
python train.py | |
cat metrics.txt >> report.md | |
echo '![](./confusion_matrix.png.png "Confusion Matrix")' >> report.md | |
cml check create report.md |