mirror of https://github.com/tqdm/tqdm.git
CI: benchmark: tidy further
This commit is contained in:
parent
823815e36e
commit
54a95bd5f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue