Skip to content

Create cml.yaml

Create cml.yaml #15

Workflow file for this run

name: wine-quality
on: [push]
jobs:
run:
runs-on: ubuntu-latest
# optionally use a convenient Ubuntu LTS + DVC + CML image
container: docker://dvcorg/cml.py3: lastest

Check failure on line 7 in .github/workflows/cml.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/cml.yaml

Invalid workflow file

You have an error in your yaml syntax on line 7
steps:
- uses: actions/checkout@v2
# 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" > report.md
cat metrics.txt >> report.md
echo "## Data Viz" >> report.md
cml-publish feature_importance.png --md >> report.md
cml-publish residuals.png --md >> report.md
cml-send-comment report.md