File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -80,15 +80,18 @@ jobs:
80
80
git fetch upstream
81
81
if git diff upstream/master --name-only | grep -q "^asv_bench/"; then
82
82
asv machine --yes
83
- ASV_OUTPUT="$(asv dev)"
84
- if [[ $(echo "$ASV_OUTPUT" | grep "failed") ]]; then
85
- echo "##vso[task.logissue type=error]Benchmarks run with errors"
86
- echo "$ASV_OUTPUT"
83
+ asv dev | sed "/failed$/ s/^/##[error]/" | tee benchmarks.log
84
+ if grep "failed" benchmarks.log > /dev/null ; then
87
85
exit 1
88
- else
89
- echo "Benchmarks run without errors"
90
86
fi
91
87
else
92
88
echo "Benchmarks did not run, no changes detected"
93
89
fi
94
90
if : true
91
+
92
+ - name : Publish benchmarks artifact
93
+ uses : actions/upload-artifact@master
94
+ with :
95
+ name : Benchmarks log
96
+ path : asv_bench/benchmarks.log
97
+ if : failure()
You can’t perform that action at this time.
0 commit comments