From f3ef7ddff6a0716324f82c8ef6d05b429878b82a Mon Sep 17 00:00:00 2001 From: Christoph Sax Date: Mon, 3 Nov 2025 22:23:30 +0100 Subject: [PATCH 1/2] codecov --- .github/workflows/test-coverage.yaml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 9e73f27..45b083f 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -15,6 +15,7 @@ jobs: runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} steps: - uses: actions/checkout@v5 @@ -25,30 +26,18 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: any::covr, any::xml2 + extra-packages: any::covr needs: coverage - cache-version: 2 - name: Test coverage run: | - cov <- covr::package_coverage( + covr::codecov( quiet = FALSE, clean = FALSE, - install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") + install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package") ) - print(cov) - covr::to_cobertura(cov) shell: Rscript {0} - - uses: codecov/codecov-action@v5 - with: - # Fail if error if not on PR, or if on PR and token is given - fail_ci_if_error: ${{ github.event_name != 'pull_request' || secrets.CODECOV_TOKEN }} - files: ./cobertura.xml - plugins: noop - disable_search: true - token: ${{ secrets.CODECOV_TOKEN }} - - name: Show testthat output if: always() run: | From e90572cf21539d53a4503d63ae19fbcbafb3b94c Mon Sep 17 00:00:00 2001 From: Christoph Sax Date: Mon, 3 Nov 2025 22:39:12 +0100 Subject: [PATCH 2/2] testthat file --- tests/testthat.R | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/testthat.R diff --git a/tests/testthat.R b/tests/testthat.R new file mode 100644 index 0000000..6ddb830 --- /dev/null +++ b/tests/testthat.R @@ -0,0 +1,12 @@ +# This file is part of the standard setup for testthat. +# It is recommended that you do not modify it. +# +# Where should you do additional test configuration? +# Learn more about the roles of various files in: +# * https://r-pkgs.org/testing-design.html#sec-tests-files-overview +# * https://testthat.r-lib.org/articles/special-files.html + +library(testthat) +library(tempdisagg) + +test_check("tempdisagg")