Skip to content

Commit 740f6ad

Browse files
committed
chore(ci): fix the codspeed workflow
1 parent ef228f6 commit 740f6ad

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

.github/workflows/codspeed.yml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,41 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
build:
11+
name: Build wheel
12+
runs-on: ubuntu-24.04
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: astral-sh/setup-uv@v4
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.12"
19+
- name: Install valgrind
20+
run: sudo apt-get install valgrind -y
21+
- name: Build the wheel
22+
run: uv build --wheel --out-dir dist/
23+
- uses: actions/upload-artifact@v4
24+
with:
25+
name: wheel
26+
path: dist/*.whl
27+
1028
benchmarks:
1129
name: Run benchmarks
30+
needs: build
1231
runs-on: ubuntu-24.04
1332
steps:
1433
- uses: actions/checkout@v4
1534
with:
1635
submodules: "recursive"
17-
- name: Set up Python 3.12
18-
uses: actions/setup-python@v2
36+
- uses: actions/setup-python@v2
1937
with:
2038
python-version: "3.12"
39+
- uses: actions/download-artifact@v4
40+
with:
41+
name: wheel
42+
path: dist
2143
- name: Install local version of pytest-codspeed
22-
run: pip install .
44+
run: pip install dist/*.whl
2345
- name: Run benchmarks
2446
uses: CodSpeedHQ/action@main
2547
with:

src/pytest_codspeed/instruments/valgrind/_wrapper/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ def get_lib() -> LibType:
1212

1313
return lib
1414
except Exception as e:
15-
raise Exception("Failed to compile the wrapper") from e
15+
raise Exception("Failed to get a compiled wrapper") from e

0 commit comments

Comments
 (0)