File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : CI
1+ name : Build
22
33on :
44 push :
Original file line number Diff line number Diff line change 1+ name : Coverage
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ coverage :
9+ name : coverage (gnu14)
10+ runs-on : ubuntu-24.04
11+ steps :
12+ - uses : actions/checkout@v5
13+
14+ - name : Install compiler
15+ uses : fortran-lang/setup-fortran@v1
16+ with :
17+ compiler : gcc
18+ version : ' 14'
19+
20+ - name : Install dependencies (Linux)
21+ run : |
22+ sudo apt-get update
23+ sudo apt-get install -y meson ninja-build liblapack-dev libunwind-dev gcovr
24+
25+ - name : Set compiler environment
26+ run : |
27+ echo "FC=gfortran" >> "$GITHUB_ENV"
28+ echo "CC=gcc" >> "$GITHUB_ENV"
29+
30+ - name : Point gcov at the gcc 14 toolchain
31+ # gcovr calls the bare `gcov`, which on ubuntu-24.04 is the gcc 13 build
32+ # and cannot read gcc 14 .gcno files. Shim it to the matching version.
33+ run : |
34+ sudo ln -sf "$(command -v gcov-14)" /usr/local/bin/gcov
35+ gcov --version | head -n1
36+
37+ - name : Build with coverage instrumentation
38+ run : |
39+ meson setup build -Db_coverage=true
40+ meson compile -C build
41+
42+ - name : Run tests
43+ run : meson test -C build --suite moist --print-errorlogs
44+
45+ - name : Generate Cobertura XML coverage report
46+ run : ninja -C build coverage-xml
47+
48+ - name : Upload coverage to Codecov
49+ uses : codecov/codecov-action@v5
50+ with :
51+ files : build/meson-logs/coverage.xml
52+ flags : fortran
53+ token : ${{ secrets.CODECOV_TOKEN }}
54+ fail_ci_if_error : false
File renamed without changes.
Original file line number Diff line number Diff line change 3636/install * /
3737/_ * /
3838
39+ # Coverage artifacts
40+ * .gcda
41+ * .gcno
42+ * .gcov
43+ coverage.xml
44+
3945# Meson subproject artifacts (transitive wraps + lock are auto-generated)
4046subprojects /toml-f.wrap
4147.wraplock
Original file line number Diff line number Diff line change 1414sphinx :
1515 configuration : docs/conf.py
1616
17- # Optionally, but recommended,
18- # declare the Python requirements required to build your documentation
19- # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
20- # python:
21- # install:
22- # - requirements: docs/requirements.txt
17+ # Declare the Python requirements required to build your docs
18+ python :
19+ install :
20+ - requirements : docs/requirements.txt
Original file line number Diff line number Diff line change 11MOIST: Modular and Open-source Implicit Solvation Toolkit
22==============
33
4+ [ ![ Coverage] ( https://codecov.io/gh/lukaswittmann/moist/graph/badge.svg )] ( https://codecov.io/gh/lukaswittmann/moist )
5+
46> [ !Note]
57> MOIST is currently in a pre-release state.
68> This version only includes the cavity construction capabilities of the Modular and Open-source Implicit Solvation Toolkit.
Original file line number Diff line number Diff line change 1+ # Codecov configuration for MOIST.
2+ # Coverage is reported for the core Fortran library (src/) only and is purely
3+ # informational — it never blocks a merge.
4+ # Reference: https://docs.codecov.com/docs/codecovyml-reference
5+
6+ coverage :
7+ status :
8+ project :
9+ default :
10+ informational : true
11+ patch :
12+ default :
13+ informational : true
14+
15+ # Vendored subprojects, the test suite, the CLI driver and the Python wrapper
16+ # are not part of the core library coverage.
17+ ignore :
18+ - " subprojects"
19+ - " test"
20+ - " app"
21+ - " python"
22+ - " config"
23+ - " build"
You can’t perform that action at this time.
0 commit comments