Skip to content

Commit

Permalink
Run C++ test suite through valgrind in CI (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
molpopgen authored Apr 16, 2024
1 parent 4b61add commit c71253b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Install apt dependencies
run: |
sudo apt install --fix-missing -y libgsl-dev cmake autoconf libboost-test-dev libboost-program-options-dev
sudo apt install --fix-missing -y libgsl-dev cmake autoconf libboost-test-dev libboost-program-options-dev valgrind
- name: Install cbindgen
uses: baptiste0928/cargo-install@v3
Expand Down Expand Up @@ -122,6 +122,14 @@ jobs:
run: |
cmake --build build -t test
- name: Run C++ tests through valgrind
run: |
# NOTE: applying valgrind at the cmake level
# using the command in the previous step gives
# "leaks", but they come from cmake and not our
# test binary. So, we run it manually.
valgrind ./build/cpptests/fwdpy11_cpp_tests
- name: Clean cmake build
run: |
rm -rf build
Expand Down

0 comments on commit c71253b

Please sign in to comment.