From 8d19c658713a1662e9cc7f1d4b9e6e9615196b1d Mon Sep 17 00:00:00 2001 From: mtwesley Date: Mon, 25 Nov 2024 23:04:34 -0500 Subject: [PATCH] more workflow updates --- .github/workflows/R-CMD-check.yaml | 7 +++++++ .github/workflows/test-coverage.yaml | 19 +++++++++++++++++-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 2bd0b5f..1a9001a 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -122,5 +122,12 @@ jobs: error-on: '"error"' # check-dir: '"check"' + - name: Show testthat output + if: always() + run: | + ## -------------------------------------------------------------------- + find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true + shell: bash + - name: Session info run: sessioninfo::session_info() \ No newline at end of file diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index f6c8e68..20836cb 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -97,7 +97,15 @@ jobs: run: | library(covr) cov <- covr::package_coverage(quiet = FALSE, clean = FALSE) - covr::to_cobertura(cov) + covr::to_cobertura(cov, output_file = "coverage.xml") + + - 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: Upload coverage to Codecov uses: codecov/codecov-action@v5 @@ -105,4 +113,11 @@ jobs: fail_ci_if_error: true files: coverage.xml disable_search: true - verbose: true \ No newline at end of file + verbose: true + + - name: Show testthat output + if: always() + run: | + ## -------------------------------------------------------------------- + find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true + shell: bash \ No newline at end of file