diff --git a/.github/workflows/GitHub | CML b/.github/workflows/GitHub | CML new file mode 100644 index 000000000..8b1378917 --- /dev/null +++ b/.github/workflows/GitHub | CML @@ -0,0 +1 @@ + diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml index 8b1378917..e91c61511 100644 --- a/.github/workflows/cml.yaml +++ b/.github/workflows/cml.yaml @@ -1 +1,19 @@ +name: CML +on: [push] +jobs: + train-and-report: + runs-on: ubuntu-latest + 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 -r requirements.txt + python train.py # generate plot.png + # Create CML report + cat metrics.txt >> report.md + echo '![](./plot.png "Confusion Matrix")' >> report.md + cml comment create report.md