1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 04:42:22 +02:00

(v1.6.0.9026) new unit test flow

This commit is contained in:
2021-05-13 21:16:22 +02:00
parent 994d157aa6
commit b1d942be91
14 changed files with 26 additions and 20 deletions

View File

@ -102,12 +102,13 @@ jobs:
shell: Rscript {0}
- name: Query dependencies
if: matrix.config.r != '3.0'
run: |
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}
- name: Cache R packages
if: runner.os != 'Windows'
if: runner.os != 'Windows' && matrix.config.r != '3.0'
# && matrix.config.r != '3.0' && matrix.config.r != '3.1' && matrix.config.r != '3.2'
uses: actions/cache@v1
with:
@ -145,7 +146,8 @@ jobs:
_R_CHECK_LENGTH_1_LOGIC2_: verbose
run: |
tar -xf data-raw/AMR_latest.tar.gz
R CMD check AMR -no-manual -as-cran
rm -rf AMR/vignettes
R CMD check AMR
shell: bash
- name: Run R CMD check on Linux and macOS
@ -158,12 +160,15 @@ jobs:
_R_CHECK_LENGTH_1_LOGIC2_: verbose
run: |
tar -xf data-raw/AMR_latest.tar.gz
rm -rf AMR/vignettes
R CMD check AMR --no-manual --as-cran
shell: bash
- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
run: |
ls -lh
find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload check results