From 9365756a57a8a6e7f58972333b6c9c0ec1442650 Mon Sep 17 00:00:00 2001 From: Marco Colombo Date: Tue, 23 Sep 2025 11:21:44 +0200 Subject: [PATCH] Attempt to fix the failure in the coverage step of the GH actions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently it fails with this error: Error: Error in loadNamespace(xml2) : there is no package called ‘xml2’ We don't use package xml2, but it's used by covr::to_cobertura(). This simplifies a bit the workflow file. --- .github/workflows/GitHub_Actions_CI.yaml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/GitHub_Actions_CI.yaml b/.github/workflows/GitHub_Actions_CI.yaml index 49c2b40..1120dc1 100644 --- a/.github/workflows/GitHub_Actions_CI.yaml +++ b/.github/workflows/GitHub_Actions_CI.yaml @@ -65,22 +65,13 @@ jobs: token = "${{ secrets.CODECOV_TOKEN }}", install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") ) - covr::to_cobertura(cov) shell: Rscript {0} - - uses: codecov/codecov-action@v4 - with: - fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }} - file: ./cobertura.xml - plugin: noop - disable_search: true - token: ${{ secrets.CODECOV_TOKEN }} - - name: Show testthat output if: always() run: | ## -------------------------------------------------------------------- - find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true + find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true shell: bash - name: Upload test results