We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fdaf68 commit 539df6dCopy full SHA for 539df6d
.github/workflows/bench.yaml
@@ -2,6 +2,8 @@ name: Benchmark
2
3
on:
4
pull_request:
5
+ push:
6
+ branches: [main]
7
8
permissions:
9
contents: write
@@ -23,13 +25,14 @@ jobs:
23
25
pip install .[dev]
24
26
pytest tests/bench.py --benchmark-json benchmark.json
27
- - name: Store results
28
+ - name: Report results
29
uses: benchmark-action/github-action-benchmark@v1
30
with:
31
name: Python Benchmarks
32
tool: pytest
33
output-file-path: benchmark.json
34
github-token: ${{ secrets.GITHUB_TOKEN }}
- auto-push: true
35
+ # Only update results if they are from main
36
+ auto-push: ${{ github.ref == 'refs/heads/main' }}
37
alert-threshold: "110%"
38
comment-on-alert: true
0 commit comments