Skip to content

Commit 726684b

Browse files
committed
feat: add codspeed for continuous benchmarking
1 parent 4e83d42 commit 726684b

File tree

3 files changed

+262
-27
lines changed

3 files changed

+262
-27
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,31 @@ name: Tests
33
on: [push, pull_request]
44

55
jobs:
6+
7+
benchmarks:
8+
name: 📈 Benchmarks
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
- run: pipx install poetry
14+
- uses: actions/setup-python@v5
15+
id: setup-python
16+
with:
17+
python-version: "3.12"
18+
architecture: x64
19+
cache: "poetry"
20+
21+
- run: poetry env use 3.12
22+
- run: poetry install --with test
23+
if: steps.setup-python.outputs.cache-hit != 'true'
24+
25+
- name: Run benchmarks
26+
uses: CodSpeedHQ/action@v2
27+
with:
28+
token: ${{ secrets.CODSPEED_TOKEN }}
29+
run: poetry run pytest tests --benchmark-enable --codspeed
30+
631
tests:
732
runs-on: ubuntu-latest
833

0 commit comments

Comments
 (0)