2020-07-10 17:36:15 +00:00
|
|
|
name: Benchmark
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: '36 1 * * SUN' # M H d m w (Sundays at 01:36)
|
|
|
|
jobs:
|
|
|
|
asvfull:
|
|
|
|
name: Benchmark
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
pip install -U wheel
|
|
|
|
pip install -U virtualenv asv
|
2020-07-10 18:26:37 +00:00
|
|
|
asv machine --machine github-actions --yes
|
2020-07-10 17:36:15 +00:00
|
|
|
git fetch --tags
|
2020-07-10 18:26:37 +00:00
|
|
|
git fetch origin master:master
|
|
|
|
- name: Restore asv results
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: .asv
|
|
|
|
key: asv-${{ runner.os }}
|
|
|
|
restore-keys: |
|
|
|
|
asv-
|
2020-07-10 17:36:15 +00:00
|
|
|
- name: asv
|
|
|
|
run: |
|
2020-07-10 18:26:37 +00:00
|
|
|
asv run --skip-existing-commits -j 8 v3.2.0..HEAD
|
2020-07-10 17:36:15 +00:00
|
|
|
asv gh-pages --no-push
|
|
|
|
- name: Publish
|
|
|
|
run: git push -f origin gh-pages:gh-pages
|