-
Notifications
You must be signed in to change notification settings - Fork 304
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 'Add Nyrkiö change point detection to 'cargo bench' workflow' f…
…rom Henrik Ingo Closes #750
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Benchmarks+Nyrkiö | ||
|
||
# Pull request support isn't integrated to the github-action-benchmark so run only post-merge | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
bench: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Bench | ||
run: cargo bench | tee output.txt | ||
|
||
- name: Analyze benchmark result with Nyrkiö | ||
uses: nyrkio/github-action-benchmark@ec6fe57 | ||
with: | ||
name: turso | ||
tool: criterion | ||
output-file-path: output.txt | ||
fail-on-alert: true | ||
# Nyrkiö configuration | ||
nyrkio-enable: true | ||
# Get yours from https://nyrkio.com/docs/getting-started | ||
nyrkio-token: ${{ secrets.NYRKIO_JWT_TOKEN }} | ||
|
||
# Old way... | ||
# Explicitly set this to null. We don't want threshold based alerts today. | ||
external-data-json-path: null | ||
gh-repository: null |