Skip to content

Commit c7a9537

Browse files
on-branch
1 parent 773f07f commit c7a9537

1 file changed

Lines changed: 34 additions & 9 deletions

File tree

.github/workflows/codspeed.yml

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,45 @@ env:
1111
SHARDS: 4
1212

1313
jobs:
14-
benchmarks:
14+
benchmarks-ubuntu:
1515
strategy:
1616
matrix:
1717
shard: [1, 2, 3, 4]
18-
include:
19-
- mode: simulation
20-
runs_on: ubuntu-latest
21-
- mode: walltime
22-
runs_on: codspeed-macro
23-
- mode: walltime
24-
runs_on: ubuntu-latest
18+
mode: ["instrumentation", "walltime"]
2519

2620
name: "Run ${{ matrix.mode }} benchmarks (Shard #${{ matrix.shard }})"
27-
runs-on: ${{ matrix.runs_on }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v5
24+
with:
25+
submodules: "recursive"
26+
- uses: astral-sh/setup-uv@v7
27+
- uses: actions/setup-python@v6
28+
with:
29+
python-version: ${{ env.PYTHON_VERSION }}
30+
- name: Install local version of pytest-codspeed
31+
run: |
32+
sudo apt-get update
33+
sudo apt-get install valgrind -y
34+
uv sync --dev
35+
sudo apt-get remove valgrind -y
36+
- run: rustup toolchain install stable
37+
- name: Run benchmarks
38+
uses: CodSpeedHQ/action@main
39+
with:
40+
mode: ${{ matrix.mode }}
41+
run: uv run pytest tests/benchmarks/ --codspeed --test-group=${{ matrix.shard }} --test-group-count=${{ env.SHARDS }}
42+
runner-version: branch:cod-2035-python-in-profiling-cli
43+
token: ${{ secrets.CODSPEED_TOKEN }}
44+
45+
benchmarks-codspeed-macro:
46+
strategy:
47+
matrix:
48+
shard: [1, 2, 3, 4]
49+
mode: ["walltime"]
50+
51+
name: "Run ${{ matrix.mode }} benchmarks (Shard #${{ matrix.shard }})"
52+
runs-on: codspeed-macro
2853
steps:
2954
- uses: actions/checkout@v5
3055
with:

0 commit comments

Comments
 (0)