Fix custom package install in CI is not working (#2302) #1124
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
python-version: "3.13" | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v5 | |
- name: Install dependencies | |
run: uv sync | |
- name: Run benchmarks | |
uses: CodSpeedHQ/action@v3 | |
with: | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
run: .venv/bin/pytest tests/ --codspeed -n auto |