From 3bba4c8f12e2963cdda6caad8c51c083ccdf59c7 Mon Sep 17 00:00:00 2001 From: Michael Duong Date: Sun, 10 Sep 2023 17:40:15 +0100 Subject: [PATCH] add comparison to master branch --- .github/workflows/MLPipelinePullRequest.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/MLPipelinePullRequest.yml b/.github/workflows/MLPipelinePullRequest.yml index 43ee9e3..612d992 100644 --- a/.github/workflows/MLPipelinePullRequest.yml +++ b/.github/workflows/MLPipelinePullRequest.yml @@ -73,8 +73,10 @@ jobs: run: | cd modules/ml-pipeline/src/pipeline/src echo "## Model metrics" > report.md - cat metrics/metrics.json >> report.md - cml comment create report.md + + # Compare metrics to main + git fetch --depth=1 origin main:main + dvc metrics diff --show-md main >> report.md # # echo "## Residuals plot from model" >> report.md # # metrics_location=$(find . -maxdepth 10 -name "residuals.png")