Skip to content

Commit 8d62554

Browse files
committed
try running tests with valgrind in the CI
Fixes #563
1 parent c19763f commit 8d62554

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/CI.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
os: [ubuntu-20.04]
13-
gcc_v: [7,8,9,10] # Version of GFortran we want to use.
14-
python-version: [3.9]
13+
gcc_v: [7,8,9,10,11] # Version of GFortran we want to use.
14+
python-version: [3.10]
1515
env:
1616
FC: gfortran-${{matrix.gcc_v}}
1717
GCC_V: ${{matrix.gcc_v}}
@@ -46,7 +46,7 @@ jobs:
4646
if: contains( matrix.os, 'ubuntu')
4747
run: |
4848
python -m pip install --upgrade pip
49-
pip install ford FoBiS.py pygooglechart
49+
pip install ford FoBiS.py pygooglechart fpm
5050
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
5151
5252
- name: Install GFortran Linux
@@ -60,14 +60,23 @@ jobs:
6060
--slave /usr/bin/gcov gcov /usr/bin/gcov-${GCC_V}
6161
6262
- name: Compile_with_build
63-
if: matrix.gcc_v != 7
63+
if: matrix.gcc_v != 7 && matrix.gcc_v != 11
6464
run: |
6565
GFORTRAN=gfortran-${{matrix.gcc_v}}
6666
GCOV=gcov-${{matrix.gcc_v}}
6767
# build with build.sh, run unit tests
6868
./build.sh --skip-documentation
6969
./build.sh --skip-documentation --enable-unicode
7070
71+
- name: Compile_with_FPM
72+
if: matrix.gcc_v == 11
73+
run: |
74+
GFORTRAN=gfortran-${{matrix.gcc_v}}
75+
GCOV=gcov-${{matrix.gcc_v}}
76+
apt-get update
77+
sudo apt update && sudo apt install -y valgrind
78+
fpm test --runner "valgrind --leak-check=full --show-leak-kinds=all"
79+
7180
- name: Compile_with_cmake
7281
# CMake build with unit tests, no documentation, with coverage analysis
7382
# No unicode so that coverage combined with the build script will cover unicode

0 commit comments

Comments
 (0)