Skip to content
Merged
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
14 changes: 5 additions & 9 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: CodSpeed Benchmarks

on:
push:
branches:
- "main"
schedule:
- cron: '0 9 * * 1' # Every Monday at 9am UTC
pull_request:
types: [labeled, synchronize]
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
types: [labeled]
workflow_dispatch:

permissions:
Expand All @@ -17,15 +14,14 @@ 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 == 'schedule' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmark'))
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # grab all branches and tags
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
Expand Down
Loading