Skip to content

Commit 003c3b4

Browse files
committed
feat(ci): add benchmarks-walltime job to run additional performance benchmarks
1 parent 768b5b8 commit 003c3b4

File tree

1 file changed

+15
-26
lines changed

1 file changed

+15
-26
lines changed

.github/workflows/codspeed.yml

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,31 @@ env:
1010
PYTHON_VERSION: "3.12"
1111

1212
jobs:
13-
build:
14-
name: Build wheel
15-
runs-on: ubuntu-24.04
16-
steps:
17-
- uses: actions/checkout@v4
18-
- uses: astral-sh/setup-uv@v4
19-
- uses: actions/setup-python@v5
20-
with:
21-
python-version: ${{ env.PYTHON_VERSION }}
22-
- name: Install valgrind
23-
run: sudo apt-get install valgrind -y
24-
- name: Build the wheel
25-
run: uv build --wheel --out-dir dist/
26-
- uses: actions/upload-artifact@v4
27-
with:
28-
name: wheel
29-
path: dist/*.whl
13+
benchmarks-instrumentation:
14+
strategy:
15+
matrix:
16+
include:
17+
- mode: "instrumentation"
18+
runs-on: ubuntu-24.04
19+
- mode: "walltime"
20+
runs-on: codspeed-macro
3021

31-
benchmarks:
32-
name: Run benchmarks
33-
needs: build
34-
runs-on: ubuntu-24.04
22+
name: Run ${{ matrix.mode }} benchmarks
23+
runs-on: ${{ matrix.runs-on }}
3524
steps:
3625
- uses: actions/checkout@v4
3726
with:
3827
submodules: "recursive"
3928
- uses: actions/setup-python@v2
4029
with:
4130
python-version: ${{ env.PYTHON_VERSION }}
42-
- uses: actions/download-artifact@v4
43-
with:
44-
name: wheel
45-
path: dist
4631
- name: Install local version of pytest-codspeed
47-
run: pip install dist/*.whl
32+
run: |
33+
sudo apt-get install valgrind -y
34+
pip install .
35+
sudo apt-get remove valgrind -y
4836
- name: Run benchmarks
4937
uses: CodSpeedHQ/action@main
5038
with:
5139
run: pytest tests/benchmarks/ --codspeed
40+
token: ${{ secrets.CODSPEED_TOKEN }}

0 commit comments

Comments
 (0)