Skip to content

Commit

Permalink
Try upgrading test-coverage.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bodkan committed Dec 7, 2023
1 parent f012eba commit d7be08b
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install rgdal dependencies (macOS)
if: runner.os == 'macOS'
Expand Down Expand Up @@ -101,8 +101,30 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: covr
extra-packages: any::covr
needs: coverage

- name: Test coverage
run: covr::codecov(type = c("tests", "vignettes"), function_exclusions = c("print\\.", "setup_env", "init_env", "check_env"))
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package"),
type = c("tests", "vignettes"),
function_exclusions = c("print\\.", "setup_env", "init_env", "check_env")
)
shell: Rscript {0}

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

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package

0 comments on commit d7be08b

Please sign in to comment.