Skip to content

Commit cf6e838

Browse files
committed
Add codspeed workflow
1 parent 307d785 commit cf6e838

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/codspeed.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Codspeed Benchmarks
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
benchmarks:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v5
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v5
17+
- name: Set up Python
18+
uses: actions/setup-python@v6
19+
with:
20+
python-version: 3.13
21+
- name: Install Project
22+
run: uv sync --frozen --group test --group doc
23+
- name: Run benchmarks
24+
uses: CodSpeedHQ/action@v4
25+
with:
26+
mode: instrumentation
27+
run: uv run pytest tests/ --codspeed

0 commit comments

Comments
 (0)