Skip to content

Commit 536ce9d

Browse files
authored
chore: less frequent codspeed runs (zarr-developers#3784)
1 parent 65e1375 commit 536ce9d

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/codspeed.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
name: CodSpeed Benchmarks
22

33
on:
4-
push:
5-
branches:
6-
- "main"
4+
schedule:
5+
- cron: '0 9 * * 1' # Every Monday at 9am UTC
76
pull_request:
8-
types: [labeled, synchronize]
9-
# `workflow_dispatch` allows CodSpeed to trigger backtest
10-
# performance analysis in order to generate initial data.
7+
types: [labeled]
118
workflow_dispatch:
129

1310
permissions:
@@ -17,15 +14,14 @@ jobs:
1714
benchmarks:
1815
name: Run benchmarks
1916
runs-on: codspeed-macro
20-
# Only run benchmarks for: pushes to main, manual triggers, or PRs with 'benchmark' label
2117
if: |
22-
github.event_name == 'push' ||
18+
github.event_name == 'schedule' ||
2319
github.event_name == 'workflow_dispatch' ||
2420
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmark'))
2521
steps:
2622
- uses: actions/checkout@v6
2723
with:
28-
fetch-depth: 0 # grab all branches and tags
24+
fetch-depth: 0
2925
- name: Set up Python
3026
uses: actions/setup-python@v6
3127
with:

0 commit comments

Comments
 (0)