Skip to content

Commit 3573be9

Browse files
committed
Let the benchmark workflow post its comments
1 parent 7d8a4d9 commit 3573be9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/bench.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Benchmark
1+
name: Benchmark
22

33
on:
44
pull_request:
@@ -8,10 +8,12 @@ on:
88
permissions:
99
contents: write
1010
deployments: write
11+
# Let us comment on the pull request when there's an alert.
12+
pull-requests: write
1113

1214
jobs:
1315
benchmark:
14-
name: Run benchmarks
16+
name: Run benchmarks
1517
runs-on: ubuntu-latest
1618
steps:
1719
- uses: actions/checkout@v6
@@ -22,7 +24,7 @@ jobs:
2224

2325
- name: Run benchmarks
2426
run: |
25-
pip install .[dev]
27+
pip install .[dev]
2628
pytest tests/bench.py --benchmark-json benchmark.json
2729
2830
- name: Report results

0 commit comments

Comments
 (0)