diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 9d5f68c27a..2cf9b193fa 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -34,28 +34,32 @@ 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: | + # Flag partially-executed single-line C branches as uncovered + options(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 }} 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