Skip to content

Commit 178c400

Browse files
Revert "Delete codspeed.yml"
This reverts commit 84d8312.
1 parent 84d8312 commit 178c400

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/codspeed.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CodSpeed Benchmarks
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
workflow_dispatch:
9+
10+
jobs:
11+
benchmarks:
12+
name: Run benchmarks
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Code
16+
uses: actions/checkout@v5
17+
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v6
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v6
23+
with:
24+
python-version: 3.13
25+
26+
- name: Install the project
27+
run: uv sync --all-extras --dev
28+
29+
- name: Run the benchmarks
30+
uses: CodSpeedHQ/action@v4
31+
with:
32+
mode: instrumentation
33+
run: uv run pytest tests/ --codspeed
34+
token: ${{ secrets.CODSPEED_TOKEN }}

0 commit comments

Comments
 (0)