Skip to content

Commit 0d573da

Browse files
authored
feat: add codspeed for continuous benchmarking (#230)
1 parent a25b40b commit 0d573da

File tree

4 files changed

+231
-2
lines changed

4 files changed

+231
-2
lines changed

.github/workflows/benchmarks.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CodSpeed
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
benchmarks:
12+
name: 📈 Benchmarks
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
17+
id: setup-python
18+
with:
19+
python-version: "3.12"
20+
architecture: x64
21+
22+
- run: pipx install poetry
23+
24+
- run: poetry env use 3.12
25+
- run: poetry install --with test
26+
27+
- name: Run benchmarks
28+
uses: CodSpeedHQ/action@v3
29+
with:
30+
token: ${{ secrets.CODSPEED_TOKEN }}
31+
run: poetry run pytest tests --benchmark-enable --codspeed

0 commit comments

Comments
 (0)