@@ -136,25 +136,7 @@ jobs:
136136 build_petsc : -petsc
137137 on_cron : false
138138
139- - name : " Coverage"
140- os : ubuntu-latest
141- cmake_options : " -DBUILD_SHARED_LIBS=ON
142- -DCMAKE_BUILD_TYPE=Debug
143- -DCHECK=3
144- -DENABLE_COVERAGE=ON
145- -DBOUT_USE_PETSC=ON
146- -DBOUT_USE_SLEPC=ON
147- -DBOUT_USE_HDF5=ON
148- -DBOUT_USE_SUNDIALS=ON
149- -DBOUT_ENABLE_PYTHON=ON
150- -DSUNDIALS_ROOT=/home/runner/local"
151- unit_only : YES
152- on_cron : false
153139 exclude :
154- # Don't run the coverage tests if the branch isn't master or next
155- - is_master_or_next : false
156- config :
157- name : " Coverage"
158140 - is_cron : true
159141 config :
160142 on_cron : false
@@ -217,22 +199,6 @@ jobs:
217199 - name : Build BOUT++
218200 run : UNIT_ONLY=${{ matrix.config.unit_only }} ./.ci_with_cmake.sh ${{ matrix.config.cmake_options }}
219201
220- - name : Capture coverage
221- if : ${{ matrix.config.name == 'Coverage' }}
222- # Explicitly run the coverage capture target, because
223- # ci_script.sh also does the upload, and we're going to do
224- # that ourselves in the next step
225- run : |
226- # Ensure that there is a corresponding .gcda file for every .gcno file
227- # This is to try and make the coverage report slightly more accurate
228- # It still won't include, e.g. any solvers we don't build with though
229- find . -name "*.gcno" -exec sh -c 'touch -a "${1%.gcno}.gcda"' _ {} \;
230- make -C build code-coverage-capture
231-
232- - name : Upload coverage
233- if : ${{ matrix.config.name == 'Coverage' }}
234- uses : codecov/codecov-action@v4
235-
236202 Fedora :
237203 # This is its own job as it doesn't use most of the steps of the
238204 # standard_tests
0 commit comments