From 78f143a875502f3542bec1852dc513e3244b8ed9 Mon Sep 17 00:00:00 2001 From: xuanle811 <71759569+xuanle811@users.noreply.github.com> Date: Wed, 22 Nov 2023 15:03:39 +0700 Subject: [PATCH] Create cml.yaml --- .github/workflows/cml.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/cml.yaml diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml new file mode 100644 index 000000000..5294da034 --- /dev/null +++ b/.github/workflows/cml.yaml @@ -0,0 +1,26 @@ +name: model-cml-wine +on: [push] +jobs: + run: + runs-on: ubuntu-latest + # optionally use a convenient Ubuntu LTS + DVC + CML image + # container: ghcr.io/iterative/cml:0-dvc2-base1 + steps: + - uses: actions/checkout@v3 + # may need to setup NodeJS & Python3 on e.g. self-hosted + # - uses: actions/setup-node@v3 + # with: + # node-version: '16' + # - uses: actions/setup-python@v4 + # with: + # python-version: '3.x' + - uses: iterative/setup-cml@v1 + - name: Train model + env: + REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + # Your ML workflow goes here + pip install -r requirements.txt + python train.py + echo "MODEL METRICS" + cat metrics.txt