File tree 1 file changed +12
-7
lines changed
example-get-started/code/.github/workflows 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 8
8
- uses : iterative/setup-dvc@v1
9
9
- uses : actions/checkout@v3
10
10
with :
11
+ ref : ${{ github.event.pull_request.head.sha }}
11
12
fetch-depth : 2
12
13
- name : Generate metrics report
13
14
env :
@@ -20,20 +21,24 @@ jobs:
20
21
PREVIOUS_REF=main
21
22
fi
22
23
23
- echo "# CML Report" > report.md
24
- echo "## Plots" >> report.md
24
+ cat <<EOF > report.md
25
+ # CML Report
26
+ ## Plots
27
+ 
28
+ 
29
+
30
+ ## Metrics and Params
31
+ ### ${PREVIOUS_REF} → workspace
32
+ EOF
33
+
25
34
dvc plots diff $PREVIOUS_REF workspace \
26
35
--show-vega --targets evaluation/plots/precision_recall.json > vega.json
27
36
vl2svg vega.json prc.svg
28
- cml publish prc.svg --title "Precision & Recall" --md >> report.md
29
37
30
38
dvc plots diff $PREVIOUS_REF workspace \
31
39
--show-vega --targets evaluation/plots/confusion_matrix.json > vega.json
32
40
vl2svg vega.json confusion.svg
33
- cml publish confusion.svg --title "Confusion Matrix" --md >> report.md
34
41
35
- echo "## Metrics and Params" >> report.md
36
- echo "### $PREVIOUS_REF → workspace" >> report.md
37
42
dvc exp diff $PREVIOUS_REF --show-md >> report.md
38
43
39
- cml send- comment report.md
44
+ cml comment create --publish --pr report.md
You can’t perform that action at this time.
0 commit comments