From d39f4e36a1a590d1cda417e92bf8d69bcab5804b Mon Sep 17 00:00:00 2001
From: "Pavel N. Krivitsky"
Date: Sun, 26 May 2024 21:06:35 +1000
Subject: [PATCH] Updated the GitHub workflows and/or the README file to the
latest versions.
---
.github/workflows/R-CMD-check.yaml | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml
index 179183d..2553f54 100644
--- a/.github/workflows/R-CMD-check.yaml
+++ b/.github/workflows/R-CMD-check.yaml
@@ -159,6 +159,7 @@ jobs:
any::rcmdcheck
any::covr
any::V8
+ any::xml2
needs: |
check
coverage
@@ -268,5 +269,22 @@ jobs:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
_R_CHECK_FORCE_SUGGESTS_: ${{ runner.os != 'macOS' }} # Rmpi is not available on macOS.
ENABLE_statnet_TESTS: ${{ contains(matrix.config.flags, 'full') }}
- run: covr::codecov(type=c("tests","examples"))
+ run: |
+ cov <- covr::package_coverage(
+ type=c("tests", "examples"),
+ quiet = FALSE,
+ clean = FALSE,
+ install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
+ )
+ covr::to_cobertura(cov)
shell: Rscript {0}
+
+ - name: Upload coverage results
+ if: contains(matrix.config.flags, 'covr')
+ 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 }}