We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe2117c commit 0056143Copy full SHA for 0056143
.github/workflows/ci.yml
@@ -80,15 +80,18 @@ jobs:
80
git fetch upstream
81
if git diff upstream/master --name-only | grep -q "^asv_bench/"; then
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"
+ asv dev | sed "/failed$/ s/^/##[error]/" | tee benchmarks.log
+ if grep "failed" benchmarks.log > /dev/null ; then
87
exit 1
88
- else
89
- echo "Benchmarks run without errors"
90
fi
91
else
92
echo "Benchmarks did not run, no changes detected"
93
94
if: true
+
+ - name: Publish benchmarks artifact
+ uses: actions/upload-artifact@master
+ with:
95
+ name: Benchmarks log
96
+ path: asv_bench/benchmarks.log
97
+ if: failure()
0 commit comments