From 8d625544f0730b5554482dbeb90ec0675d9d90bd Mon Sep 17 00:00:00 2001 From: Jacob Williams Date: Mon, 27 May 2024 22:59:01 -0500 Subject: [PATCH] try running tests with valgrind in the CI Fixes #563 --- .github/workflows/CI.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index f204964f8..0cdd61def 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -10,8 +10,8 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04] - gcc_v: [7,8,9,10] # Version of GFortran we want to use. - python-version: [3.9] + gcc_v: [7,8,9,10,11] # Version of GFortran we want to use. + python-version: [3.10] env: FC: gfortran-${{matrix.gcc_v}} GCC_V: ${{matrix.gcc_v}} @@ -46,7 +46,7 @@ jobs: if: contains( matrix.os, 'ubuntu') run: | python -m pip install --upgrade pip - pip install ford FoBiS.py pygooglechart + pip install ford FoBiS.py pygooglechart fpm if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Install GFortran Linux @@ -60,7 +60,7 @@ jobs: --slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V} - name: Compile_with_build - if: matrix.gcc_v != 7 + if: matrix.gcc_v != 7 && matrix.gcc_v != 11 run: | GFORTRAN=gfortran-${{matrix.gcc_v}} GCOV=gcov-${{matrix.gcc_v}} @@ -68,6 +68,15 @@ jobs: ./build.sh --skip-documentation ./build.sh --skip-documentation --enable-unicode + - name: Compile_with_FPM + if: matrix.gcc_v == 11 + run: | + GFORTRAN=gfortran-${{matrix.gcc_v}} + GCOV=gcov-${{matrix.gcc_v}} + apt-get update + sudo apt update && sudo apt install -y valgrind + fpm test --runner "valgrind --leak-check=full --show-leak-kinds=all" + - name: Compile_with_cmake # CMake build with unit tests, no documentation, with coverage analysis # No unicode so that coverage combined with the build script will cover unicode