Skip to content

Commit 620c813

Browse files
committed
fix(bench): Remove unnecessary Python version matrix from benchmark workflow
The benchmark job was incorrectly configured to run across multiple Python versions using a matrix strategy, which is incompatible with CodSpeedHQ's benchmarking service. This change removes the matrix configuration and standardizes the benchmark execution to a single environment, ensuring proper benchmark collection and reporting. This fix resolves the issue where benchmarks would fail due to CodSpeedHQ not supporting multiple runs of the same benchmark across different Python versions.
1 parent 0533a88 commit 620c813

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

template/.github/workflows/bench.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
echo 'has-benches=false' >> "$GITHUB_OUTPUT"
4545
fi
4646
47+
# CodSpeedHQ does not support the same benchmark multiple times
4748
bench:
4849
name: Bench
4950
needs:
@@ -55,8 +56,6 @@ jobs:
5556
uses: actions/checkout@v5
5657
- name: Setup Python
5758
uses: liblaf/actions/setup-python@v1
58-
with:
59-
python-version: ${{ matrix.python-version }}
6059
- name: Install Mise
6160
uses: jdx/mise-action@v3
6261
- name: Bench
@@ -66,7 +65,3 @@ jobs:
6665
mode: instrumentation
6766
env:
6867
FORCE_COLOR: 1
69-
strategy:
70-
matrix:
71-
python-version: ${{ fromJson(needs.metadata.outputs.python-versions) }}
72-
fail-fast: false

0 commit comments

Comments
 (0)