Skip to content

Commit f22f779

Browse files
initial codspeed action commit
1 parent 9195c88 commit f22f779

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/codspeed.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Codspeed Benchmarks
2+
on:
3+
pull_request:
4+
types: [ opened, reopened, synchronize ]
5+
paths:
6+
- 'card_data/**'
7+
8+
permissions:
9+
contents: read
10+
id-token: write
11+
12+
jobs:
13+
benchmarks:
14+
runs-on: ubuntu-22.04
15+
defaults:
16+
run:
17+
working-directory: card_data
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v6
22+
23+
- name: Setup Python
24+
uses: actions/setup-python@v6
25+
with:
26+
python-version: '3.12'
27+
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v4
30+
31+
- name: Install dependencies
32+
run: uv sync --dev
33+
34+
- name: Run the benchmarks
35+
uses: CodSpeedHQ/action@v4
36+
with:
37+
working-directory: card_data
38+
mode: simulation
39+
run: uv run pytest pipelines/tests/ -v --codspeed

0 commit comments

Comments
 (0)