From 08e665856556d1e272e0487c281ac7a90f69b1e1 Mon Sep 17 00:00:00 2001 From: ecm9999 Date: Fri, 14 Jun 2024 23:41:39 -0400 Subject: [PATCH 1/2] Create GitHub | CML --- .github/workflows/GitHub | CML | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/GitHub | CML 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 @@ + From 3736a97cd5d40cd841c35cebc32df4c76c57dba4 Mon Sep 17 00:00:00 2001 From: ecm9999 Date: Sat, 15 Jun 2024 00:09:30 -0400 Subject: [PATCH 2/2] Update cml.yaml cml --- .github/workflows/cml.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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