Skip to content

Commit 2ca0ede

Browse files
committed
try github-action-benchmark
1 parent 75b064a commit 2ca0ede

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/benchmark.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Benchmark
22
on: [ pull_request, push, workflow_dispatch ]
33

44
permissions:
5-
contents: read
5+
contents: write
66

77
env:
88
UV_FROZEN: true
@@ -36,6 +36,18 @@ jobs:
3636
with:
3737
name: benchmark-output
3838
path: output.json
39+
- name: Benchmark results
40+
uses: benchmark-action/github-action-benchmark@v1
41+
with:
42+
tool: 'pytest'
43+
output-file-path: output.json
44+
external-data-json-path: ./cache/benchmark-data.json
45+
fail-on-alert: true
46+
alert-threshold: '10%'
47+
# to make a commit comment
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
comment-on-alert: true
50+
summary-always: true
3951

4052
- name: Append benchmark table to summary
4153
if: always()

0 commit comments

Comments
 (0)