From debac7129fe6b84e721194bb8f027faf1fe83aef Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Tue, 17 Mar 2026 17:23:25 -0400 Subject: [PATCH 1/2] chore: less frequent codspeed runs --- .github/workflows/codspeed.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 7192b6d78a..09cc269318 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -1,13 +1,10 @@ -name: CodSpeed Benchmarks +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: @@ -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: From e697988ca0a0b1ce3e3cce017fd436401c2e4f8d Mon Sep 17 00:00:00 2001 From: Max Jones <14077947+maxrjones@users.noreply.github.com> Date: Tue, 17 Mar 2026 17:25:34 -0400 Subject: [PATCH 2/2] Revert name change --- .github/workflows/codspeed.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index 09cc269318..bc4f1c1d4c 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -1,4 +1,4 @@ -name: Codspeed benchmarks +name: CodSpeed Benchmarks on: schedule: