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