From 84a628f14c70c6157042ea28321779c9e3965a2e Mon Sep 17 00:00:00 2001 From: chiricom Date: Wed, 2 Dec 2026 20:08:33 +0000 Subject: [PATCH 1/2] Gemini: Modernize test-coverage workflow for covr 4.1.0 --- .github/workflows/test-coverage.yaml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 9d5f68c27a..b543738a4c 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -34,28 +34,36 @@ jobs: - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true - r-version: '4.3' # TODO(r-lib/covr#567): Go back to using r-devel - uses: r-lib/actions/setup-r-dependencies@v2 with: - # TODO(covr > 4.0.0): pkgbuild should not be necessary - extra-packages: any::covr, any::xml2, any::pkgbuild + extra-packages: any::covr needs: coverage - name: Test coverage run: | + options( + # frollapply() uses parallel::mcparallel() without listing parallel in DESCRIPTION + covr.fix_parallel_mcexit = TRUE, + # Flag partially-executed single-line C branches as uncovered + covr.gcov_partial = "uncovered" + ) cov <- covr::package_coverage( quiet = FALSE, - clean = FALSE, install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") ) - covr::to_cobertura(cov) + print(cov, missing = TRUE) + summary_file <- Sys.getenv("GITHUB_STEP_SUMMARY") + if (nzchar(summary_file)) { + cat(covr::coverage_to_markdown(cov), file = summary_file, sep = "\n", append = TRUE) + } + covr::lcov(cov) shell: Rscript {0} - uses: codecov/codecov-action@v7 with: - fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }} - files: ./cobertura.xml + fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN != '' }} + files: ./lcov.info plugins: noop disable_search: true token: ${{ secrets.CODECOV_TOKEN }} From f3c8f0770dadf2307a0bd63b1fae304f2b10113b Mon Sep 17 00:00:00 2001 From: chiricom Date: Wed, 2 Dec 2026 20:17:53 +0000 Subject: [PATCH 2/2] put parallel in Suggests to get fix_parallel_mcexit --- .github/workflows/test-coverage.yaml | 8 ++------ DESCRIPTION | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index b543738a4c..2cf9b193fa 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -42,12 +42,8 @@ jobs: - name: Test coverage run: | - options( - # frollapply() uses parallel::mcparallel() without listing parallel in DESCRIPTION - covr.fix_parallel_mcexit = TRUE, - # Flag partially-executed single-line C branches as uncovered - covr.gcov_partial = "uncovered" - ) + # Flag partially-executed single-line C branches as uncovered + options(covr.gcov_partial = "uncovered") cov <- covr::package_coverage( quiet = FALSE, install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") diff --git a/DESCRIPTION b/DESCRIPTION index b2255d16ff..c5661509b9 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -3,7 +3,7 @@ Version: 1.18.99 Title: Extension of `data.frame` Depends: R (>= 3.5.0) Imports: methods, stats, utils -Suggests: bit64 (>= 4.0.0), R.utils, xts, zoo (>= 1.8-1), yaml, litedown, codetools +Suggests: bit64 (>= 4.0.0), R.utils, xts, zoo (>= 1.8-1), yaml, litedown, codetools, parallel Enhances: knitr, xfun Description: Fast aggregation of large data (e.g. 100GB in RAM), fast ordered joins, fast add/modify/delete of columns by group using no copies at all, list columns, friendly and fast character-separated-value read/write. Offers a natural and flexible syntax, for faster development. License: MPL-2.0 | file LICENSE