Get startedGet started for free

Run DVC pipeline in GitHub Actions

In this exercise, you will use CML GitHub Action to run a DVC pipeline and compare metrics between the training branch and main. The pipeline will trigger when you open a PR against the main branch.

The output from running train.py is a metrics.json file containing model metrics that will provide the source data for comparing metrics across branches.

Your task is to finish the scaffolded .github/workflows/dvc_cml.yaml to formulate a high-level model training flow. Scroll down to Line 24 to make changes.

This exercise is part of the course

CI/CD for Machine Learning

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise