Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- "main"
pull_request:
types: [labeled, synchronize]
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
Expand All @@ -16,6 +17,11 @@ jobs:
benchmarks:
name: Run benchmarks
runs-on: codspeed-macro
# Only run benchmarks for: pushes to main, manual triggers, or PRs with 'benchmark' label
if: |
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmark'))
steps:
- uses: actions/checkout@v6
with:
Expand Down
1 change: 1 addition & 0 deletions changes/3673.misc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Benchmark CI now only runs for PRs with the `benchmark` label, reducing CodSpeed credit usage.