Skip to content

Fix codespeed python version #2774

Fix codespeed python version

Fix codespeed python version #2774

Workflow file for this run

name: codspeed-benchmarks
on:
push:
branches:
- "main"
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
concurrency:
group: codespeed-${{ github.ref }}
cancel-in-progress: true
jobs:
benchmarks:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
# uv standalone build is not compatible with CodSpeedHQ
# https://github.com/astral-sh/uv/issues/11006
- uses: actions/setup-python@v6
with:
python-version: "3.14.2"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: uv sync --all-extras --group benchmark
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: .venv/bin/pytest tests/main/test_performance.py --codspeed
mode: "walltime"