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