Skip to content

Commit 5e8f116

Browse files
authored
Improve coverage accuracy (#979)
1 parent c93195f commit 5e8f116

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/codecov.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
coverage:
2-
strict_yaml_branch: default
3-
max_report_age: off
42
status:
53
project:
64
default:

.github/workflows/coverage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ jobs:
3030
- name: Setup Ubuntu
3131
run: |
3232
sudo apt update -y
33-
sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev libblas-dev liblapack-dev
33+
sudo apt install -y tar wget make cmake gcc g++ python3 \
34+
python3-dev "openmpi-*" libopenmpi-dev hdf5-tools \
35+
libfftw3-dev libhdf5-dev libblas-dev liblapack-dev
3436
3537
- name: Build
3638
run: /bin/bash mfc.sh build -j $(nproc) --gcov

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
124124
add_compile_options(
125125
$<$<COMPILE_LANGUAGE:Fortran>:-fprofile-arcs>
126126
$<$<COMPILE_LANGUAGE:Fortran>:-ftest-coverage>
127+
$<$<COMPILE_LANGUAGE:Fortran>:-O1>
127128
)
128129

129130
add_link_options(
@@ -360,6 +361,8 @@ macro(HANDLE_SOURCES target useCommon)
360361
-D chemistry=False
361362
--line-numbering
362363
--no-folding
364+
--line-length=999
365+
--line-numbering-mode=nocontlines
363366
"${fpp}" "${f90}"
364367
DEPENDS "${fpp};${${target}_incs}"
365368
COMMENT "Preprocessing (Fypp) ${fpp_filename}"

0 commit comments

Comments
 (0)