Skip to content

on-branch

on-branch #618

Workflow file for this run

name: CodSpeed

Check failure on line 1 in .github/workflows/codspeed.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/codspeed.yml

Invalid workflow file

(Line: 81, Col: 9): Job 'all-checks' depends on unknown job 'benchmarks'.
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
env:
PYTHON_VERSION: "3.14"
SHARDS: 4
jobs:
benchmarks-ubuntu:
strategy:
matrix:
shard: [1, 2, 3, 4]
mode: ["instrumentation", "walltime"]
name: "Run ${{ matrix.mode }} benchmarks (Shard #${{ matrix.shard }})"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: "recursive"
- uses: astral-sh/setup-uv@v7
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install local version of pytest-codspeed
run: |
sudo apt-get update
sudo apt-get install valgrind -y
uv sync --dev
sudo apt-get remove valgrind -y
- run: rustup toolchain install stable
- name: Run benchmarks
uses: CodSpeedHQ/action@main
with:
mode: ${{ matrix.mode }}
run: uv run pytest tests/benchmarks/ --codspeed --test-group=${{ matrix.shard }} --test-group-count=${{ env.SHARDS }}
runner-version: branch:cod-2035-python-in-profiling-cli
token: ${{ secrets.CODSPEED_TOKEN }}
benchmarks-codspeed-macro:
strategy:
matrix:
shard: [1, 2, 3, 4]
mode: ["walltime"]
name: "Run ${{ matrix.mode }} benchmarks (Shard #${{ matrix.shard }})"
runs-on: codspeed-macro
steps:
- uses: actions/checkout@v5
with:
submodules: "recursive"
- uses: astral-sh/setup-uv@v7
- uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install local version of pytest-codspeed
run: |
sudo apt-get update
sudo apt-get install valgrind -y
uv sync --dev
sudo apt-get remove valgrind -y
- run: rustup toolchain install stable
- name: Run benchmarks
uses: CodSpeedHQ/action@main
with:
mode: ${{ matrix.mode }}
run: uv run pytest tests/benchmarks/ --codspeed --test-group=${{ matrix.shard }} --test-group-count=${{ env.SHARDS }}
runner-version: branch:cod-2035-python-in-profiling-cli
token: ${{ secrets.CODSPEED_TOKEN }}
all-checks:
runs-on: ubuntu-latest
steps:
- run: echo "All CI checks passed."
needs:
- benchmarks