From aa92f7b7b9890dfd03a4d6101ddc3bc70310fe5f Mon Sep 17 00:00:00 2001 From: SamDewriter <55236862+SamDewriter@users.noreply.github.com> Date: Sat, 24 Jul 2021 19:57:29 +0000 Subject: [PATCH] Create cml.yaml --- .github/workflows/cml.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 0000000..1c23c8b --- /dev/null +++ b/.github/workflows/cml.yaml @@ -0,0 +1,23 @@ +name: mlworkflows +on: [push] +jobs: + run: + runs-on: [ubuntu-latest] + # optionally use a convenient Ubuntu LTS + CUDA + DVC + CML image + # container: docker://dvcorg/cml:0-dvc2-base1-gpu + # container: docker://ghcr.io/iterative/cml:0-dvc2-base1-gpu + steps: + - uses: actions/checkout@v2 + # may need to setup NodeJS & Python3 on e.g. self-hosted + # - uses: actions/setup-node@v2 + # with: + # node-version: '12' + # - uses: actions/setup-python@v2 + # with: + # python-version: '3.x' + - uses: iterative/setup-cml@v1 + - name: Train model + run: | + # Your ML workflow goes here + pip install -r requirements.txt + python train.py