From fcb65f79157379c13e4e153e8704c2d3f96e190c Mon Sep 17 00:00:00 2001 From: Sandro Dias Pinto Vitenti Date: Fri, 12 Apr 2024 18:28:25 -0300 Subject: [PATCH] Updating codecov to v4. (#151) * Updating codecov to v4. * Skipping openmpi on macos. --- .github/workflows/build_check.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index 323c95c3..d97c496d 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -43,7 +43,7 @@ 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: @@ -51,7 +51,7 @@ jobs: 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) @@ -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 @@ -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: | @@ -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 @@ -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} @@ -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