diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml new file mode 100644 index 000000000..8203cbcfe --- /dev/null +++ b/.github/workflows/cml.yaml @@ -0,0 +1,18 @@ +name: CML +on: [push] +jobs: + run: + runs-on: ubuntu-latest + container: docker://ghcr.io/iterative/cml:0-dvc2-base1 + steps: + - uses: actions/checkout@v2 + - name: Train model + env: + REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pip install -r requirements.txt + python train.py + + cat metrics.txt >> report.md + cml publish confusion_matrix.png --md >> report.md + cml-send-comment report.md