Skip to content

Commit

Permalink
Only push on master
Browse files Browse the repository at this point in the history
Comment all the time
  • Loading branch information
dtracers committed May 1, 2020
1 parent bcc1a8c commit 81dbf11
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,26 @@ jobs:
cd carball/tests/benchmarking
pytest benchmarking.py --benchmark-json carball_benchmarking.json -k 'test_${{matrix.benchtest}}'
# always comment on every push
- name: Process and store benchmark ${{matrix.benchtest}}.
uses: rhysd/github-action-benchmark@v1
with:
name: Carball Benchmarks ${{matrix.benchtest}}
tool: 'pytest'
output-file-path: carball/tests/benchmarking/carball_benchmarking.json
benchmark-data-dir-path: dev/bench/${{matrix.benchtest}}/
# Use personal access token instead of GITHUB_TOKEN due to
# https://github.community/t5/GitHub-Actions/Github-action-not-triggering-gh-pages-upon-push/td-p/26869/highlight/false
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: false
alert-threshold: '125%' # If performance is 1.25x worse, there will be an alert
comment-always: true
fail-on-alert: true

# REQUIRES gh-pages BRANCH IN THE MAIN REPO (for the graphs).
# Only upload to master branch on push
- name: Process and store benchmark ${{matrix.benchtest}}.
if: contains(github.ref, 'master')
uses: rhysd/github-action-benchmark@v1
with:
name: Carball Benchmarks ${{matrix.benchtest}}
Expand All @@ -58,5 +76,5 @@ jobs:
github-token: ${{ secrets.GH_WIKI_EDIT_TOKEN }}
auto-push: true
alert-threshold: '125%' # If performance is 1.25x worse, there will be an alert
comment-always: true
comment-always: false
comment-on-alert: true

0 comments on commit 81dbf11

Please sign in to comment.