Skip to content

Commit

Permalink
CML workflow on push & PR
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl authored Oct 17, 2022
1 parent 799c9ad commit 8f92a3b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/cml.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: CML Report
on: push
on: [push, pull_request]
jobs:
run:
runs-on: [ubuntu-latest]
Expand All @@ -14,10 +14,10 @@ jobs:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cml ci
if [ $GITHUB_REF = refs/heads/main ]; then
PREVIOUS_REF=HEAD~1
else
if test ${{ github.event_name }} = pull_request; then
PREVIOUS_REF=main
else
PREVIOUS_REF=HEAD~1
fi
dvc plots diff $PREVIOUS_REF workspace \
Expand All @@ -42,3 +42,6 @@ jobs:
EOF
cml comment create --publish --pr=false report.md
if test ${{ github.event_name }} = pull_request; then
cml comment create --publish --pr report.md
fi

1 comment on commit 8f92a3b

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CML Report

Plots

Precision & Recall
Confusion Matrix

Metrics and Params

HEAD~1 → workspace

Path Metric HEAD~1 workspace Change
Path Param HEAD~1 workspace Change

CML watermark

Please sign in to comment.