Skip to content

Commit

Permalink
more workflow updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwesley committed Nov 26, 2024
1 parent a4715cd commit 8d19c65
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
19 changes: 17 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,27 @@ 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
with:
fail_ci_if_error: true
files: coverage.xml
disable_search: true
verbose: true
verbose: true

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

0 comments on commit 8d19c65

Please sign in to comment.