Skip to content

Commit 28519d0

Browse files
committed
Add PYTHONMALLOC
1 parent a09f08e commit 28519d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/valgrind.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@ jobs:
4141
run: pip -v install .[ci] --config-settings=cmake.build-type="Debug"
4242

4343
- name: Run unit tests
44-
run: valgrind ${VALGRIND_FLAGS} pytest -n auto --durations 20 test/test_lagrange.py
44+
run: PYTHONMALLOC=malloc valgrind ${VALGRIND_FLAGS} pytest -n auto --durations 20 test/test_lagrange.py
4545

4646
- name: Run simple CMake integration test
4747
run: |
4848
cd test/test_cmake
4949
cmake -DCMAKE_BUILD_TYPE=Debug -DPython3_EXECUTABLE=python3 -G Ninja -B build-dir -S .
5050
cmake --build build-dir/
51-
valgrind ${VALGRIND_FLAGS} build-dir/a.out
51+
PYTHONMALLOC=malloc valgrind ${VALGRIND_FLAGS} build-dir/a.out
5252
5353
- name: Run Python demos
54-
run: valgrind ${VALGRIND_FLAGS} pytest demo/python/test.py
54+
run: PYTHONMALLOC=malloc valgrind ${VALGRIND_FLAGS} pytest demo/python/test.py
5555

5656
- name: Run C++ demos
57-
run: valgrind ${VALGRIND_FLAGS} pytest demo/cpp/test.py
57+
run: PYTHONMALLOC=malloc valgrind ${VALGRIND_FLAGS} pytest demo/cpp/test.py

0 commit comments

Comments
 (0)