CI: benchmark: tidy further

This commit is contained in:
Casper da Costa-Luis 2020-07-16 23:31:13 +01:00
parent 823815e36e
commit 54a95bd5f9
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 10 additions and 8 deletions

View File

@ -42,7 +42,7 @@ jobs:
GIT_AUTHOR_NAME: ${{ github.actor }}
GIT_AUTHOR_EMAIL: ${{ github.actor }}@users.noreply.github.com
testasv:
if: github.event_name == 'push' && ! startsWith(github.event.ref, 'refs/tags')
if: github.event_name == 'push' && ! startsWith(github.event.ref, 'refs/tags') && github.event.ref != 'refs/heads/master'
name: Branch
runs-on: ubuntu-latest
steps:
@ -56,7 +56,7 @@ jobs:
pip install -U virtualenv asv
asv machine --machine github-actions --yes
git fetch --tags
[ "$(git symbolic-ref --short HEAD)" == master ] || git fetch origin master:master
git fetch origin master:master
- name: Restore previous results
uses: actions/cache@v2
with:
@ -66,9 +66,11 @@ jobs:
asv-
- name: Benchmark
run: |
if [ "$(git symbolic-ref --short HEAD)" != master ]; then
asv continuous --interleave-processes --only-changed -f 1.25 master HEAD
CHANGES="$(asv compare --only-changed -f 1.25 master HEAD)"
echo "$CHANGES"
[ -z "$CHANGES" ] || exit 1
fi
asv continuous --interleave-processes --only-changed -f 1.25 master HEAD
CHANGES="$(asv compare --only-changed -f 1.25 master HEAD)"
echo "$CHANGES"
[ -z "$CHANGES" ] || exit 1
always:
runs-on: ubuntu-latest
steps:
- run: echo prevent failure when other jobs are skipped