File tree Expand file tree Collapse file tree 1 file changed +15
-26
lines changed Expand file tree Collapse file tree 1 file changed +15
-26
lines changed Original file line number Diff line number Diff line change 10
10
PYTHON_VERSION : " 3.12"
11
11
12
12
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
30
21
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 }}
35
24
steps :
36
25
- uses : actions/checkout@v4
37
26
with :
38
27
submodules : " recursive"
39
28
- uses : actions/setup-python@v2
40
29
with :
41
30
python-version : ${{ env.PYTHON_VERSION }}
42
- - uses : actions/download-artifact@v4
43
- with :
44
- name : wheel
45
- path : dist
46
31
- 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
48
36
- name : Run benchmarks
49
37
uses : CodSpeedHQ/action@main
50
38
with :
51
39
run : pytest tests/benchmarks/ --codspeed
40
+ token : ${{ secrets.CODSPEED_TOKEN }}
You can’t perform that action at this time.
0 commit comments