@@ -213,6 +213,8 @@ jobs:
213213 - {os: windows-latest, r: 'release'}
214214 # Use 3.6 to trigger usage of RTools35
215215 - {os: windows-latest, r: '3.6'}
216+ # use 4.1 to check with rtools40's older compiler
217+ - {os: windows-latest, r: '4.1'}
216218
217219 - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
218220 - {os: ubuntu-latest, r: 'release'}
@@ -284,8 +286,27 @@ jobs:
284286 needs: coverage
285287
286288 - name: Test coverage
287- run: covr::codecov(quiet = FALSE)
289+ run: |
290+ covr::codecov(
291+ quiet = FALSE,
292+ clean = FALSE,
293+ install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
294+ )
288295 shell: Rscript {0}
296+
297+ - name: Show testthat output
298+ if: always()
299+ run: |
300+ ## --------------------------------------------------------------------
301+ find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
302+ shell: bash
303+
304+ - name: Upload test results
305+ if: failure()
306+ uses: actions/upload-artifact@v3
307+ with:
308+ name: coverage-test-failures
309+ path: ${{ runner.temp }}/package
289310` ` `
290311
291312# # Lint workflow
@@ -326,6 +347,8 @@ jobs:
326347 - name: Lint
327348 run: lintr::lint_package()
328349 shell: Rscript {0}
350+ env:
351+ LINTR_ERROR_ON_LINT: true
329352` ` `
330353
331354# # Commands workflow
@@ -599,9 +622,9 @@ changes to the same branch.
599622# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
600623on:
601624 push:
602- paths: ["**.[rR]", "**.[rR ]md", "**.[rR]markdown", "**.[rR]nw"]
625+ paths: ["**.[rR]", "**.[qrR ]md", "**.[rR]markdown", "**.[rR]nw"]
603626 pull_request:
604- paths: ["**.[rR]", "**.[rR ]md", "**.[rR]markdown", "**.[rR]nw"]
627+ paths: ["**.[rR]", "**.[qrR ]md", "**.[rR]markdown", "**.[rR]nw"]
605628
606629name: Style
607630
@@ -959,6 +982,8 @@ jobs:
959982 - name: Lint root directory
960983 run: lintr::lint_dir()
961984 shell: Rscript {0}
985+ env:
986+ LINTR_ERROR_ON_LINT: true
962987` ` `
963988
964989# # Forcing binaries
0 commit comments