Skip to content

Commit

Permalink
feat: add codspeed for continuous benchmarking (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwrede authored Oct 21, 2024
1 parent a25b40b commit 0d573da
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CodSpeed

on:
push:
branches:
- "main"
pull_request:
workflow_dispatch:

jobs:
benchmarks:
name: 📈 Benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.12"
architecture: x64

- run: pipx install poetry

- run: poetry env use 3.12
- run: poetry install --with test

- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: poetry run pytest tests --benchmark-enable --codspeed
Loading

0 comments on commit 0d573da

Please sign in to comment.