Skip to content

Commit 3299e07

Browse files
authored
Merge branch 'main' into feat/default-buffer
2 parents 6904239 + d44baf6 commit 3299e07

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/codspeed.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- "main"
77
pull_request:
8+
types: [labeled, synchronize]
89
# `workflow_dispatch` allows CodSpeed to trigger backtest
910
# performance analysis in order to generate initial data.
1011
workflow_dispatch:
@@ -16,6 +17,11 @@ jobs:
1617
benchmarks:
1718
name: Run benchmarks
1819
runs-on: codspeed-macro
20+
# Only run benchmarks for: pushes to main, manual triggers, or PRs with 'benchmark' label
21+
if: |
22+
github.event_name == 'push' ||
23+
github.event_name == 'workflow_dispatch' ||
24+
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'benchmark'))
1925
steps:
2026
- uses: actions/checkout@v6
2127
with:

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v6
2020
- name: Install uv
21-
uses: astral-sh/setup-uv@v5
21+
uses: astral-sh/setup-uv@v7
2222
- name: Install prek
2323
run: uv tool install prek
2424
- name: Run prek

changes/3673.misc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Benchmark CI now only runs for PRs with the `benchmark` label, reducing CodSpeed credit usage.

0 commit comments

Comments
 (0)