Skip to content

fix: simplify tool installation and invocation #76

fix: simplify tool installation and invocation

fix: simplify tool installation and invocation #76

Workflow file for this run

name: CodSpeed
on:
push:
branches:
- "main"
paths:
- "cpp-linter-hooks/**"
- "tests/**"
- ".github/workflows/codspeed.yml"
- "pyproject.toml"
pull_request:
branches:
- "main"
paths:
- "cpp-linter-hooks/**"
- "tests/**"
- ".github/workflows/codspeed.yml"
- "pyproject.toml"
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c #v5
with:
python-version: "3.13"
- name: Install dependencies
run: pip install -e .[dev]
- name: Run benchmarks
uses: CodSpeedHQ/action@6eeb021fd0f305388292348b775d96d95253adf4 #v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest tests/ --codspeed
mode: instrumentation