diff --git a/.github/workflows/cml.yaml b/.github/workflows/cml.yaml new file mode 100644 index 000000000..90110babc --- /dev/null +++ b/.github/workflows/cml.yaml @@ -0,0 +1,24 @@ +name: model-wine-quality +on: [push] +jobs: + run: + runs-on: ubuntu-latest + container: docker://ghcr.io/iterative/cml:0-dvc2-base1 + steps: + - uses: actions/checkout@v2 + - name: Train model + env: + REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + pip install -r requirements.txt + python train.py + + + echo "## Model Metrics" > report.md + cat metrics.txt >> report.md + + echo "## Data Viz" >> report.md + cat report.md + #cml-publish feature_importance.png --md >> report.md + #cml-publish residuals.png --md >> report.md + cml-send-comment report.md