diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 179183d2..2553f541 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 }} diff --git a/README.md b/README.md index 59e520a4..cdeb1919 100644 --- a/README.md +++ b/README.md @@ -26,11 +26,4 @@ A set of binaries is built after every commit to the repository. We strongly enc You will need to extract the MacOS `.tgz` or the Windows `.zip` file from the outer `.zip` file before installing. These binaries are usually built under the latest version of R and their operating system and may not work under other versions. -You may also want to install the corresponding latest binaries for packages on which `tergm` depends, in particular [`statnet.common`](https://github.com/statnet/statnet.common), [`network`](https://github.com/statnet/network), [`networkDynamic`](https://github.com/statnet/networkDynamic), and [`ergm`](https://github.com/statnet/ergm). - - - -## Code of Conduct - -Please note that the tergm project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms. - +You may also want to install the corresponding latest binaries for packages on which `tergm` depends, in particular [`statnet.common`](https://github.com/statnet/statnet.common), [`network`](https://github.com/statnet/network), [`networkDynamic`](https://github.com/statnet/networkDynamic), [`ergm`](https://github.com/statnet/ergm), and [`ergm.multi`](https://github.com/statnet/ergm.multi).