Skip to content

Commit 9189db9

Browse files
committed
chore: move benchmarks to separate file
1 parent 5fcdeaf commit 9189db9

File tree

2 files changed

+31
-23
lines changed

2 files changed

+31
-23
lines changed

.github/workflows/benchmarks.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CodSpeed
2+
3+
on:
4+
push:
5+
branches:
6+
- "main" # or "master"
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

.github/workflows/test.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,6 @@ name: Tests
33
on: [push, pull_request]
44

55
jobs:
6-
7-
benchmarks:
8-
name: 📈 Benchmarks
9-
runs-on: ubuntu-latest
10-
11-
steps:
12-
- uses: actions/checkout@v4
13-
- run: pipx install poetry
14-
- uses: actions/setup-python@v5
15-
id: setup-python
16-
with:
17-
python-version: "3.12"
18-
architecture: x64
19-
20-
- run: poetry env use 3.12
21-
- run: poetry install --with test
22-
23-
- name: Run benchmarks
24-
uses: CodSpeedHQ/action@v3
25-
with:
26-
token: ${{ secrets.CODSPEED_TOKEN }}
27-
run: poetry run pytest tests --benchmark-enable --codspeed
28-
296
tests:
307
runs-on: ubuntu-latest
318

0 commit comments

Comments
 (0)