Skip to content

ci: use codspeed for benchmarking #33

ci: use codspeed for benchmarking

ci: use codspeed for benchmarking #33

Workflow file for this run

name: Benchmark
on:
push:
branches:
- main
pull_request:
branches:
- main
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmark:
runs-on: ubuntu-latest
name: Benchmark
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12
cache: "pip"
- run: make ci
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest tests/ --codspeed