1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-08 11:11:54 +02:00

unit tests

This commit is contained in:
2023-01-05 18:21:48 +01:00
parent 5361c0b2a0
commit 268ec31d92
6 changed files with 15 additions and 8 deletions

View File

@ -52,7 +52,7 @@ jobs:
- {os: ubuntu-22.04, r: '3.2', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
- {os: ubuntu-22.04, r: '3.1', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
- {os: ubuntu-22.04, r: '3.0', allowfail: false, rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
@ -105,7 +105,7 @@ jobs:
rm DESCRIPTION
mv DESCRIPTION2 DESCRIPTION
shell: bash
- name: Run R CMD check
if: always()
env:
@ -129,7 +129,7 @@ jobs:
R CMD check --as-cran --no-manual --run-donttest --run-dontrun AMR_*.tar.gz
shell: bash
- name: Show unit tests output
- name: Show tinytest output
if: always()
run: |
cd ../AMR.Rcheck

View File

@ -56,12 +56,12 @@ jobs:
- {os: macOS-latest, r: 'devel', allowfail: false}
- {os: windows-latest, r: 'devel', allowfail: false}
- {os: ubuntu-latest, r: 'devel', allowfail: false}
# current 'release' version:
- {os: macOS-latest, r: '4.2', allowfail: false}
- {os: windows-latest, r: '4.2', allowfail: false}
- {os: ubuntu-latest, r: '4.2', allowfail: false}
# older versions (see also check-old.yaml for even older versions):
- {os: ubuntu-latest, r: '4.1', allowfail: false}
- {os: ubuntu-latest, r: '4.0', allowfail: false}
@ -96,3 +96,10 @@ jobs:
# during 'R CMD check', R_LIBS_USER will be overwritten, so:
R_LIBS_USER_GH_ACTIONS: ${{ env.R_LIBS_USER }}
R_RUN_TINYTEST: true
- name: Show tinytest output
if: always()
run: |
cd ../AMR.Rcheck
find . -name 'tinytest.Rout*' -exec cat '{}' \; ||>
shell: bash