File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CodSpeed Benchmarks
22
33on :
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
1310permissions :
@@ -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 :
You can’t perform that action at this time.
0 commit comments