Skip to content

Commit

Permalink
Updating codecov to v4. (#151)
Browse files Browse the repository at this point in the history
* Updating codecov to v4.
* Skipping openmpi on macos.
  • Loading branch information
vitenti committed Apr 12, 2024
1 parent 0744d27 commit fcb65f7
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions .github/workflows/build_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ jobs:
- name: Check NumCosmo
run: meson test -C build || (cat build/meson-logs/testlog.txt && exit 1)
- name: Create a NumCosmo tarball
run: meson dist -C build --no-tests
run: meson dist -C build --no-tests
- name: Upload a Build Artifact
uses: actions/upload-artifact@v2
with:
name: release
path: build/meson-dist/numcosmo-*.tar.xz
- name: Test example compilation using installed library
run: |
sudo meson install -C build
sudo meson install -C build
cd examples
gcc -D_GNU_SOURCE -Wall example_simple.c -o example_simple $(pkg-config numcosmo --libs --cflags)
gcc -D_GNU_SOURCE -Wall example_ca.c -o example_ca $(pkg-config numcosmo --libs --cflags)
Expand All @@ -73,9 +73,9 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.x'
- name: Brew install pre-requisites
run: |
brew install gobject-introspection gsl gmp mpfr fftw cfitsio libfyaml nlopt gfortran gtk-doc glib openblas
Expand All @@ -85,7 +85,7 @@ jobs:
- name: Ensure clear Jupyter Notebooks
uses: ResearchSoftwareActions/EnsureCleanNotebooksAction@1.1
- name: Configure NumCosmo
run: |
run: |
meson setup build -Dbuildtype=release -Dnumcosmo_py=true -Dmpi=disabled --prefix=/usr || (cat build/meson-logs/meson-log.txt && exit 1)
- name: Building NumCosmo
run: |
Expand All @@ -98,7 +98,7 @@ jobs:
python example_cbe.py
- name: Check NumCosmo
run: meson test -C build || (cat build/meson-logs/testlog.txt && exit 1)

build-miniforge:
name: (${{ matrix.os }}, py${{ matrix.python-version }}, ${{ matrix.mpi }}, Miniforge)
runs-on: ${{ matrix.os }}-latest
Expand All @@ -107,6 +107,9 @@ jobs:
os: ["ubuntu", "macos"]
python-version: ["3.10"]
mpi: ["openmpi", "mpich"]
exclude:
- os: "macos"
mpi: "openmpi"
defaults:
run:
shell: bash -el {0}
Expand Down Expand Up @@ -224,12 +227,15 @@ jobs:
meson test -C build --timeout-multiplier 0 || (cat build/meson-logs/testlog.txt && exit 1)
lcov --config-file .lcovrc --no-external --capture --directory build --directory numcosmo --directory tests --base-directory $(pwd)/build --output-file numcosmo-coverage-tests.info
lcov --config-file .lcovrc --add-tracefile numcosmo-coverage-base.info --add-tracefile numcosmo-coverage-tests.info --output-file numcosmo-coverage-full.info
lcov --config-file .lcovrc --remove numcosmo-coverage-full.info '*/class/*' '*/levmar/*' '*/libcuba/*' '*/plc/*' '*/sundials/*' '*/toeplitz/*' '*/tools/*' --output-file numcosmo-coverage.info
lcov --config-file .lcovrc --remove numcosmo-coverage-full.info '*/class/*' '*/levmar/*' '*/libcuba/*' '*/plc/*' '*/sundials/*' '*/toeplitz/*' '*/tools/*' --output-file numcosmo-coverage.info
- name: CodeCov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
disable_search: true
fail_ci_if_error: true
files: ./numcosmo-coverage.info
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
#- name: Generate coverage
# # For some reason, gcovr is ignoring the configured gcovr.cfg file
# # ninja coverage -C build -v -d stats -d explain
Expand Down

0 comments on commit fcb65f7

Please sign in to comment.