Skip to content

feat(cicd): codspeed benchmarks #55

feat(cicd): codspeed benchmarks

feat(cicd): codspeed benchmarks #55

Workflow file for this run

name: CodSpeed Benchmarks
on:
push:
branches:
- master
- '[0-9].[0-9]+'
pull_request:
branches:
- master
- '[0-9].[0-9]+'
jobs:
benchmark:
name: Run CodSpeed Benchmarks (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
pip install .
- name: Run the benchmarks
uses: CodSpeedHQ/action@v4
env:
PYTEST_ADDOPTS: ""
with:
mode: instrumentation
run: pytest --codspeed benchmark.py
token: ${{ secrets.CODSPEED_TOKEN }}"