From 2d1c3df4ca4879274f27e182c5255211503200b2 Mon Sep 17 00:00:00 2001 From: mpadge Date: Wed, 10 Jul 2024 13:51:42 +0200 Subject: [PATCH] update testcov workflow --- .github/workflows/test-coverage.yaml | 17 +++++++++++++---- DESCRIPTION | 2 +- codemeta.json | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 974203d..80e02ad 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -42,23 +42,32 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: any::covr + extra-packages: any::covr, any::xml2 needs: coverage - name: Test coverage run: | - covr::codecov( + cov <- covr::package_coverage( quiet = FALSE, clean = FALSE, - install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package") + 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 diff --git a/DESCRIPTION b/DESCRIPTION index 910ee39..e0bb644 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: pkgcheck Title: rOpenSci Package Checks -Version: 0.1.2.044 +Version: 0.1.2.045 Authors@R: c( person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2172-5265")), diff --git a/codemeta.json b/codemeta.json index 7c9cee7..131ac0b 100644 --- a/codemeta.json +++ b/codemeta.json @@ -8,7 +8,7 @@ "codeRepository": "https://github.com/ropensci-review-tools/pkgcheck", "issueTracker": "https://github.com/ropensci-review-tools/pkgcheck/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "0.1.2.044", + "version": "0.1.2.045", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R",