Skip to content

Commit

Permalink
CI: make benchmarks continuous
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jul 10, 2020
1 parent 6c02eb9 commit 5e64e38
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ on:
- cron: '36 1 * * SUN' # M H d m w (Sundays at 01:36)
jobs:
asvfull:
name: Benchmark
if: (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')) || github.event_name == 'schedule'
name: Full
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -30,7 +31,7 @@ jobs:
asv-
- name: Benchmark
run: |
asv run --skip-existing-commits -j 8 v3.2.0..HEAD
asv run -j 8 --interleave-processes --skip-existing v3.2.0..HEAD
- name: Build pages
run: |
git config --global user.email "$GIT_AUTHOR_EMAIL"
Expand All @@ -40,3 +41,32 @@ jobs:
env:
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')
name: Branch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install
run: |
pip install -U wheel
pip install -U virtualenv asv
asv machine --machine github-actions --yes
git fetch --tags
git fetch origin master:master
- name: Restore previous results
uses: actions/cache@v2
with:
path: .asv
key: asv-${{ runner.os }}
restore-keys: |
asv-
- name: Benchmark
run: |
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

0 comments on commit 5e64e38

Please sign in to comment.