Closed rs028 closed 1 year ago
Merging #501 (df049f3) into master (87e02fd) will decrease coverage by
14.67%
. The diff coverage isn/a
.
@JamesAllsopp I have reorganized the ci.yml
file as we discussed, but I haven't added your modifications yet (first I need to change the Makefile). Can you please have a look and see if I have missed something, when you have 10 minutes?
Still needs some tidying up but it should more or less work. Basically it does 2 things:
introduces a new variable in Makefile
. If set to FALSE (default) adds -O2
to the gfortran flags. If set to TRUE, adds the gcov
flags needed by codecov, but not needed for production runs (for which we want optimization instead).
reorganize the ci.yml
file so that there is no longer a standard run that is not part of a test and then it runs the tests twice: the first for numerical and behavioural accuracy (with -O2 flag) and the second for codecoverage (with gcov
flags). The second run is done only for the latest linux and gfortran versions and uploads the results to Codecov for analysis.
I have also split the Makefile
into two parts to make it easier to read and maintain.
That's really good, should make the code easier to deal with
I haven't gone through this in any depth, but it looks like a nice improvement! The key thing is - does the coverage now get measured, and change over time, in ways that make sense? :)
The key thing is - does the coverage now get measured, and change over time, in ways that make sense? :)
That's the question! I think so, but not sure yet. I found out that I can reset the codecov info. So I could remove the tests, reset codecov and add the tests one by one to see what happens. But maybe first I should merge this, to keep things clean.
Fix the reporting of code coverage by Codecov (see #450).
Also requires modifications to the
Makefile
, as codecov works better without optimization and creation of the gcov files is not needed otherwise.