File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 SHARDS : 4
1212
1313jobs :
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 :
You can’t perform that action at this time.
0 commit comments