Skip to content

Commit 0c8f5c6

Browse files
committed
feat: install codspeed
1 parent 9c7c335 commit 0c8f5c6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/codspeed.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CodSpeed
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Run on pushes to the main branch
7+
pull_request: # Run on all pull requests
8+
9+
jobs:
10+
codspeed:
11+
name: Run benchmarks
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: "3.13"
19+
- name: Install dependencies
20+
run: pip install pytest pytest-codspeed
21+
- uses: CodSpeedHQ/action@v3
22+
with:
23+
run: pytest tests/ --codspeed
24+
token: ${{ secrets.CODSPEED_TOKEN }} # Optional for public repositories

0 commit comments

Comments
 (0)