From 30368840be65592685900776caf9e606ab00e5b1 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 09:00:11 +0200 Subject: [PATCH 01/13] Add code-coverage for the fpm-deployment github action --- .github/workflows/fpm-deployment.yml | 32 ++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fpm-deployment.yml b/.github/workflows/fpm-deployment.yml index ffcd392e1..e1722b2d7 100644 --- a/.github/workflows/fpm-deployment.yml +++ b/.github/workflows/fpm-deployment.yml @@ -35,15 +35,43 @@ jobs: with: fpm-version: 'v0.10.0' + - name: Prepare for code coverage + if: contains( matrix.os, 'ubuntu') + run: | + sudo apt-get install lcov + sudo add-apt-repository ppa:ubuntu-toolchain-r/test + sudo apt-get update + sudo apt-get install -y gcc-13 gfortran-13 + sudo update-alternatives \ + --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 \ + --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-13 \ + --slave /usr/bin/gcov gcov /usr/bin/gcov-13 + - run: | # Just for deployment: create stdlib-fpm folder python config/fypp_deployment.py --deploy_stdlib_fpm - run: | # Just for deployment: create stdlib-fpm-ilp64 folder python config/fypp_deployment.py --deploy_stdlib_fpm --with_ilp64 - - run: | # Use fpm gnu ci to check xdp and qp + - run: | # Use fpm gnu ci to check xdp and qp python config/fypp_deployment.py --with_xdp --with_qp - fpm test --profile release --flag '-DWITH_XDP -DWITH_QP' + fpm test --profile release --flag '-DWITH_XDP -DWITH_QP -coverage' + + - name: Create coverage report + run: | + mkdir -p ${{ env.COV_DIR }} + 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 + + - name: Upload coverage report + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: build/coverage/coverage.info # Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch. - name: Deploy 🚀 From 7b1536c609088a3d0f354238f24ad164971a20ce Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 09:06:27 +0200 Subject: [PATCH 02/13] Try fixing code cov ga. --- .github/workflows/fpm-deployment.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/fpm-deployment.yml b/.github/workflows/fpm-deployment.yml index e1722b2d7..317de74cf 100644 --- a/.github/workflows/fpm-deployment.yml +++ b/.github/workflows/fpm-deployment.yml @@ -39,13 +39,13 @@ jobs: if: contains( matrix.os, 'ubuntu') run: | sudo apt-get install lcov - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install -y gcc-13 gfortran-13 - sudo update-alternatives \ - --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 \ - --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-13 \ - --slave /usr/bin/gcov gcov /usr/bin/gcov-13 + # sudo add-apt-repository ppa:ubuntu-toolchain-r/test + # sudo apt-get update + # sudo apt-get install -y gcc-13 gfortran-13 + # sudo update-alternatives \ + # --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 \ + # --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-13 \ + # --slave /usr/bin/gcov gcov /usr/bin/gcov-13 - run: | # Just for deployment: create stdlib-fpm folder python config/fypp_deployment.py --deploy_stdlib_fpm From e9ec89172bee366f7cb163e7166fca935886e73c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 09:27:19 +0200 Subject: [PATCH 03/13] Change fpm profile for coverage to see if it compiles faster. --- .github/workflows/fpm-deployment.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/fpm-deployment.yml b/.github/workflows/fpm-deployment.yml index 317de74cf..281bd9559 100644 --- a/.github/workflows/fpm-deployment.yml +++ b/.github/workflows/fpm-deployment.yml @@ -57,6 +57,10 @@ jobs: python config/fypp_deployment.py --with_xdp --with_qp fpm test --profile release --flag '-DWITH_XDP -DWITH_QP -coverage' + - run: | # Use fpm gnu ci to check xdp and qp + python config/fypp_deployment.py --with_xdp --with_qp + fpm test --profile debug --flag '-DWITH_XDP -DWITH_QP -coverage' + - name: Create coverage report run: | mkdir -p ${{ env.COV_DIR }} From d933b3140446e115579e9f5d2850318d97e581f4 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 09:31:24 +0200 Subject: [PATCH 04/13] Remove coverage options from the release build. --- .github/workflows/fpm-deployment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fpm-deployment.yml b/.github/workflows/fpm-deployment.yml index 281bd9559..087c8b519 100644 --- a/.github/workflows/fpm-deployment.yml +++ b/.github/workflows/fpm-deployment.yml @@ -55,7 +55,7 @@ jobs: - run: | # Use fpm gnu ci to check xdp and qp python config/fypp_deployment.py --with_xdp --with_qp - fpm test --profile release --flag '-DWITH_XDP -DWITH_QP -coverage' + fpm test --profile release --flag '-DWITH_XDP -DWITH_QP' - run: | # Use fpm gnu ci to check xdp and qp python config/fypp_deployment.py --with_xdp --with_qp From 812446f52400d7dcd9af052075093d6ed2dbb279 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 09:57:55 +0200 Subject: [PATCH 05/13] Deploy code coverage in a separate GA. --- .github/workflows/codecov.yml | 69 ++++++++++++++++++++++++++++ .github/workflows/fpm-deployment.yml | 32 ------------- 2 files changed, 69 insertions(+), 32 deletions(-) create mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 000000000..e576df4b8 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,69 @@ +name: fpm-deployment + +on: [push, pull_request] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + toolchain: {compiler: gcc, version: 14} + + steps: + - name: Checkout code + uses: actions/checkout@v2.3.1 + + - name: Set up Python 3.x + uses: actions/setup-python@v1 + with: + python-version: 3.x + + - name: Install requirements + run: pip install --upgrade -r config/requirements.txt + + - uses: fortran-lang/setup-fortran@main + id: setup-fortran + with: + compiler: ${{ matrix.toolchain.compiler }} + version: ${{ matrix.toolchain.version }} + + - name: Setup Fortran Package Manager + uses: fortran-lang/setup-fpm@v5 + with: + fpm-version: 'v0.10.0' + + - name: Prepare for code coverage + if: contains( matrix.os, 'ubuntu') + run: | + sudo apt-get install lcov + sudo add-apt-repository ppa:ubuntu-toolchain-r/test + sudo apt-get update + sudo apt-get install -y gcc-14 gfortran-14 + sudo update-alternatives \ + --install /usr/bin/gcc gcc /usr/bin/gcc-14 100 \ + --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-14 \ + --slave /usr/bin/gcov gcov /usr/bin/gcov-14 + + - name: Run test to generate the coverage. + run: | # Use fpm gnu ci to check xdp and qp + python config/fypp_deployment.py #--with_xdp --with_qp + fpm test --profile debug --flag '-coverage' + + - name: Create coverage report + run: | + mkdir -p ${{ env.COV_DIR }} + 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 + + - name: Upload coverage report + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: build/coverage/coverage.info diff --git a/.github/workflows/fpm-deployment.yml b/.github/workflows/fpm-deployment.yml index 087c8b519..061c6f8af 100644 --- a/.github/workflows/fpm-deployment.yml +++ b/.github/workflows/fpm-deployment.yml @@ -35,18 +35,6 @@ jobs: with: fpm-version: 'v0.10.0' - - name: Prepare for code coverage - if: contains( matrix.os, 'ubuntu') - run: | - sudo apt-get install lcov - # sudo add-apt-repository ppa:ubuntu-toolchain-r/test - # sudo apt-get update - # sudo apt-get install -y gcc-13 gfortran-13 - # sudo update-alternatives \ - # --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 \ - # --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-13 \ - # --slave /usr/bin/gcov gcov /usr/bin/gcov-13 - - run: | # Just for deployment: create stdlib-fpm folder python config/fypp_deployment.py --deploy_stdlib_fpm @@ -57,26 +45,6 @@ jobs: python config/fypp_deployment.py --with_xdp --with_qp fpm test --profile release --flag '-DWITH_XDP -DWITH_QP' - - run: | # Use fpm gnu ci to check xdp and qp - python config/fypp_deployment.py --with_xdp --with_qp - fpm test --profile debug --flag '-DWITH_XDP -DWITH_QP -coverage' - - - name: Create coverage report - run: | - mkdir -p ${{ env.COV_DIR }} - 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 - - - name: Upload coverage report - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: build/coverage/coverage.info - # Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch. - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@4.1.5 From d28fc7ae30ee16e18c833e348cfad7cd1104f81e Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 09:58:49 +0200 Subject: [PATCH 06/13] Rename GA --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index e576df4b8..057bf5ec9 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -1,4 +1,4 @@ -name: fpm-deployment +name: code-coverage on: [push, pull_request] From ea8bb3d0ab8dfec6f9bc3d4a5a24bce6133e787b Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 10:04:07 +0200 Subject: [PATCH 07/13] Fix compilation issue in code-coverage. --- .github/workflows/codecov.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 057bf5ec9..50b4db1d4 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -39,15 +39,8 @@ jobs: if: contains( matrix.os, 'ubuntu') run: | sudo apt-get install lcov - sudo add-apt-repository ppa:ubuntu-toolchain-r/test - sudo apt-get update - sudo apt-get install -y gcc-14 gfortran-14 - sudo update-alternatives \ - --install /usr/bin/gcc gcc /usr/bin/gcc-14 100 \ - --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-14 \ - --slave /usr/bin/gcov gcov /usr/bin/gcov-14 - - name: Run test to generate the coverage. + - name: Run tests to generate the coverage. run: | # Use fpm gnu ci to check xdp and qp python config/fypp_deployment.py #--with_xdp --with_qp fpm test --profile debug --flag '-coverage' From f67889b060c8e5242b675fc1307e5faf59cbe2c8 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 10:19:47 +0200 Subject: [PATCH 08/13] Change to profile release to generate the code. --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 50b4db1d4..6f0cc0b5c 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -43,7 +43,7 @@ jobs: - name: Run tests to generate the coverage. run: | # Use fpm gnu ci to check xdp and qp python config/fypp_deployment.py #--with_xdp --with_qp - fpm test --profile debug --flag '-coverage' + fpm test --profile release --flag '-coverage' - name: Create coverage report run: | From f46311df9b9c6b9e285d4d8e91cd84ae46af09a3 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 10:59:11 +0200 Subject: [PATCH 09/13] Tries ignoring the mismatch error. --- .github/workflows/codecov.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 6f0cc0b5c..62043b68f 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -49,9 +49,9 @@ jobs: run: | mkdir -p ${{ env.COV_DIR }} 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 + lcov --capture --initial --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.base --ignore-errors mismatch + lcov --capture --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.capture --ignore-errors mismatch + lcov --add-tracefile ${{ env.COV_DIR }}/coverage.base --add-tracefile ${{ env.COV_DIR }}/coverage.capture --output-file ${{ env.COV_DIR }}/coverage.info --ignore-errors mismatch env: COV_DIR: build/coverage From 2aa83dea6ece3ffc4b2d1ed5ecc86447feba91a5 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 11:28:34 +0200 Subject: [PATCH 10/13] Add extended and quadruple precision to the coverage. --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 62043b68f..4a83f7eee 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -42,7 +42,7 @@ jobs: - name: Run tests to generate the coverage. run: | # Use fpm gnu ci to check xdp and qp - python config/fypp_deployment.py #--with_xdp --with_qp + python config/fypp_deployment.py --with_xdp --with_qp fpm test --profile release --flag '-coverage' - name: Create coverage report From 601fe74bd7449d006c33939550cab5d8260d09c8 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 11:32:44 +0200 Subject: [PATCH 11/13] Added compilation flags for xdp and qp. --- .github/workflows/codecov.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 4a83f7eee..1a41c3af4 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -43,7 +43,7 @@ jobs: - name: Run tests to generate the coverage. run: | # Use fpm gnu ci to check xdp and qp python config/fypp_deployment.py --with_xdp --with_qp - fpm test --profile release --flag '-coverage' + fpm test --profile release --flag '-DWITH_XDP -DWITH_QP -coverage' - name: Create coverage report run: | From 6cec32351f0336b22e45b7b2db487e0c33165ceb Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 15:37:05 +0200 Subject: [PATCH 12/13] Try running the code-coverage from the stdlib-fpm branch. --- .github/workflows/codecov.yml | 62 ---------------------------- .github/workflows/fpm-deployment.yml | 58 ++++++++++++++++++++++++-- 2 files changed, 55 insertions(+), 65 deletions(-) delete mode 100644 .github/workflows/codecov.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml deleted file mode 100644 index 1a41c3af4..000000000 --- a/.github/workflows/codecov.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: code-coverage - -on: [push, pull_request] - -jobs: - test: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - include: - - os: ubuntu-latest - toolchain: {compiler: gcc, version: 14} - - steps: - - name: Checkout code - uses: actions/checkout@v2.3.1 - - - name: Set up Python 3.x - uses: actions/setup-python@v1 - with: - python-version: 3.x - - - name: Install requirements - run: pip install --upgrade -r config/requirements.txt - - - uses: fortran-lang/setup-fortran@main - id: setup-fortran - with: - compiler: ${{ matrix.toolchain.compiler }} - version: ${{ matrix.toolchain.version }} - - - name: Setup Fortran Package Manager - uses: fortran-lang/setup-fpm@v5 - with: - fpm-version: 'v0.10.0' - - - name: Prepare for code coverage - if: contains( matrix.os, 'ubuntu') - run: | - sudo apt-get install lcov - - - name: Run tests to generate the coverage. - run: | # Use fpm gnu ci to check xdp and qp - python config/fypp_deployment.py --with_xdp --with_qp - fpm test --profile release --flag '-DWITH_XDP -DWITH_QP -coverage' - - - name: Create coverage report - run: | - mkdir -p ${{ env.COV_DIR }} - mv ./build/gfortran_*/*/* ${{ env.COV_DIR }} - lcov --capture --initial --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.base --ignore-errors mismatch - lcov --capture --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.capture --ignore-errors mismatch - lcov --add-tracefile ${{ env.COV_DIR }}/coverage.base --add-tracefile ${{ env.COV_DIR }}/coverage.capture --output-file ${{ env.COV_DIR }}/coverage.info --ignore-errors mismatch - env: - COV_DIR: build/coverage - - - name: Upload coverage report - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: build/coverage/coverage.info diff --git a/.github/workflows/fpm-deployment.yml b/.github/workflows/fpm-deployment.yml index 061c6f8af..66949ee04 100644 --- a/.github/workflows/fpm-deployment.yml +++ b/.github/workflows/fpm-deployment.yml @@ -3,7 +3,8 @@ name: fpm-deployment on: [push, pull_request] jobs: - test: + deploy: + name: Run tests and deploys the fpm branches runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -45,7 +46,7 @@ jobs: python config/fypp_deployment.py --with_xdp --with_qp fpm test --profile release --flag '-DWITH_XDP -DWITH_QP' - # Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch. + # Update and deploy the f90 files generated by github-ci to the `stdlib-fpm` branch. - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@4.1.5 if: github.event_name != 'pull_request' @@ -53,10 +54,61 @@ jobs: BRANCH: stdlib-fpm FOLDER: stdlib-fpm - # Update and deploy the f90 files generated by github-ci to the `stdlib-fpm-ilp64` branch. + # Update and deploy the f90 files generated by github-ci to the `stdlib-fpm-ilp64` branch. - name: Deploy with 64-bit integer support 🚀 uses: JamesIves/github-pages-deploy-action@4.1.5 if: github.event_name != 'pull_request' with: BRANCH: stdlib-fpm-ilp64 FOLDER: stdlib-fpm-ilp64 + + coverage: + name: Generate and upload code coverage report + needs: deploy + if: github.ref == 'refs/heads/stdlib-fpm' + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + toolchain: {compiler: gcc, version: 13} + + steps: + - name: Checkout code + uses: actions/checkout@v2.3.1 + + - uses: fortran-lang/setup-fortran@main + id: setup-fortran + with: + compiler: ${{ matrix.toolchain.compiler }} + version: ${{ matrix.toolchain.version }} + + - name: Setup Fortran Package Manager + uses: fortran-lang/setup-fpm@v5 + with: + fpm-version: 'v0.10.0' + + - name: Prepare for code coverage + if: contains( matrix.os, 'ubuntu') + run: | + sudo apt-get install lcov + + - name: Run tests to generate the coverage. + run: fpm test --profile release --flag '-DWITH_XDP -DWITH_QP -coverage' + + - name: Create coverage report + run: | + mkdir -p ${{ env.COV_DIR }} + mv ./build/gfortran_*/*/* ${{ env.COV_DIR }} + lcov --capture --initial --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.base --ignore-errors mismatch + lcov --capture --base-directory . --directory ${{ env.COV_DIR }} --output-file ${{ env.COV_DIR }}/coverage.capture --ignore-errors mismatch + lcov --add-tracefile ${{ env.COV_DIR }}/coverage.base --add-tracefile ${{ env.COV_DIR }}/coverage.capture --output-file ${{ env.COV_DIR }}/coverage.info --ignore-errors mismatch + env: + COV_DIR: build/coverage + + - name: Upload coverage report + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: build/coverage/coverage.info From 86f3453782a64da76a6ed9cc98a41b50333964c7 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Date: Fri, 25 Jul 2025 15:56:58 +0200 Subject: [PATCH 13/13] Try checking out the stdlib-fpm branch. --- .github/workflows/fpm-deployment.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/fpm-deployment.yml b/.github/workflows/fpm-deployment.yml index 66949ee04..226f7cae6 100644 --- a/.github/workflows/fpm-deployment.yml +++ b/.github/workflows/fpm-deployment.yml @@ -65,7 +65,6 @@ jobs: coverage: name: Generate and upload code coverage report needs: deploy - if: github.ref == 'refs/heads/stdlib-fpm' runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -76,7 +75,9 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2.3.1 + uses: actions/checkout@v4.2.2 + with: + ref: stdlib-fpm - uses: fortran-lang/setup-fortran@main id: setup-fortran