Use rounding for overpopulation movements (#221) #1461
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Valgrind Memcheck | |
on: | |
- push | |
- pull_request | |
jobs: | |
memcheck: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -y -qq valgrind | |
- name: Configure | |
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. | |
- name: Build | |
run: cmake --build build | |
- name: Build and run tests | |
run: cmake --build build --target test | |
- name: Add tests to path | |
run: | | |
echo "$(pwd)/build/tests/" >> $GITHUB_PATH | |
- name: Memcheck | |
run: | | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_competency_table | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_date | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_deterministic | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_distributions | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_environment | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_generator_provider | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_model | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_mortality | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_movements | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_multi_host_model | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_network | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_network_helpers | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_network_kernel | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_overpopulation_movements | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_quarantine | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_random | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_raster | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_scheduling | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_simulation | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_simulation_kernels | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_soils | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_spread_rate | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_statistics | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_survival_rate | |
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --error-exitcode=1 test_treatments |