fix docker creation #5
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: train-my-model | |
on: [push] | |
jobs: | |
run: | |
runs-on: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: iterative/setup-cml@v2 | |
- name: Train model | |
run: | | |
pip install -r requirements.txt # install dependencies | |
pip install . | |
python classifier/train_cml.py # run training | |
- name: Write report | |
env: | |
# this authenticates that the right permissions are in place | |
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
# send all information to report.md that will be reported to us when the workflow finish | |
cat reports/classification_report.txt >> report.md | |
cml-publish reports/confusion_matrix.png --md >> report.md | |
cml-send-comment report.md |