Skip to content

Commit e883df1

Browse files
authored
ci: use setup-python install so codspeed builds flamegraphs correctly (#5997)
1 parent 9677e50 commit e883df1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/benches.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ jobs:
2020
- uses: actions/checkout@v6.0.2
2121
- uses: astral-sh/setup-uv@v7
2222
with:
23-
# codspeed action needs to be run from within the final Python environment
24-
activate-environment: true
2523
save-cache: ${{ github.ref == 'refs/heads/main' || contains(github.event.pull_request.labels.*.name, 'CI-save-pr-cache') }}
24+
25+
# Using this action is still necessary for CodSpeed to build flamegraphs correctly,
26+
# see note about setup-python in https://codspeed.io/docs/benchmarks/python#recipes
27+
- uses: actions/setup-python@v6
28+
with:
29+
python-version: ${{ env.UV_PYTHON }}
30+
2631
- uses: dtolnay/rust-toolchain@stable
2732
with:
2833
components: rust-src

0 commit comments

Comments
 (0)