From a8e9deb9bf0c49e7de2054bab4f14afbb188d6dc Mon Sep 17 00:00:00 2001 From: Gabriele Bellomia <56808633+beddalumia@users.noreply.github.com> Date: Sun, 4 Feb 2024 09:00:07 +0100 Subject: [PATCH] Update test.yaml Attempt to fix coverage report --- .github/workflows/test.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 7805399..5f9dcd0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -59,8 +59,9 @@ jobs: - name: Create coverage report run: | mkdir -p ${{ env.COV_DIR }} - lcov --capture --initial --base-directory . --directory build/gfortran_*/ --output-file ${{ env.COV_DIR }}/coverage.base - lcov --capture --base-directory . --directory build/gfortran_*/ --output-file ${{ env.COV_DIR }}/coverage.capture + mv ./build/gfortran_*/*/* ${{ env.COV_DIR }} + lcov --capture --initial --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.base + lcov --capture --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.capture lcov --add-tracefile ${{ env.COV_DIR }}/coverage.base --add-tracefile ${{ env.COV_DIR }}/coverage.capture --output-file ${{ env.COV_DIR }}/coverage.info env: COV_DIR: build/coverage @@ -77,4 +78,4 @@ jobs: project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} # or # api-token: ${{ secrets.CODACY_API_TOKEN }} - coverage-reports: build/coverage/coverage.info \ No newline at end of file + coverage-reports: build/coverage/coverage.info