Skip to content

Commit 036e176

Browse files
committed
Compile valgrind ready Python
1 parent 28519d0 commit 036e176

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/valgrind.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,23 @@ jobs:
2424
steps:
2525
- uses: actions/checkout@v4
2626

27-
- name: Set up Python
28-
uses: actions/setup-python@v5
27+
# - name: Set up Python
28+
# uses: actions/setup-python@v5
29+
# with:
30+
# python-version: 3.13
31+
- uses: actions/checkout@v4
2932
with:
30-
python-version: 3.13
31-
33+
repository: 'python/cpython'
34+
ref: 'v3.13.2'
35+
path: 'cpython'
36+
37+
- name: Build Python
38+
working-directory: cpython
39+
run: |
40+
./configure --with-valgrind
41+
make -j4 all
42+
make install
43+
3244
- name: Install dependencies
3345
run: |
3446
sudo apt-get update
@@ -48,7 +60,7 @@ jobs:
4860
cd test/test_cmake
4961
cmake -DCMAKE_BUILD_TYPE=Debug -DPython3_EXECUTABLE=python3 -G Ninja -B build-dir -S .
5062
cmake --build build-dir/
51-
PYTHONMALLOC=malloc valgrind ${VALGRIND_FLAGS} build-dir/a.out
63+
valgrind ${VALGRIND_FLAGS} build-dir/a.out
5264
5365
- name: Run Python demos
5466
run: PYTHONMALLOC=malloc valgrind ${VALGRIND_FLAGS} pytest demo/python/test.py

0 commit comments

Comments
 (0)