Skip to content

Commit

Permalink
feat: add codspeed for continuous benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwrede committed Oct 19, 2024
1 parent 4e83d42 commit 726684b
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 27 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,31 @@ name: Tests
on: [push, pull_request]

jobs:

benchmarks:
name: 📈 Benchmarks
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: pipx install poetry
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: "3.12"
architecture: x64
cache: "poetry"

- run: poetry env use 3.12
- run: poetry install --with test
if: steps.setup-python.outputs.cache-hit != 'true'

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

tests:
runs-on: ubuntu-latest

Expand Down
Loading

0 comments on commit 726684b

Please sign in to comment.