diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 04d3d9e2..3c35d3f5 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -108,20 +108,20 @@ jobs: run: | sudo apt install -y libssl-dev pandoc pandoc-citeproc libxml2-dev libicu-dev libcurl4-openssl-dev - - name: Update package dependencies - run: | - install.packages("data-raw/AMR_latest.tar.gz") - source("data-raw/_install_deps.R") - shell: Rscript {0} - - name: Cache R packages # if: runner.os != 'Windows' uses: actions/cache@v1 with: path: ${{ env.R_LIBS_USER }} - key: ${{ matrix.config.os }}-r-${{ matrix.config.r }} # -${{ hashFiles('.github/depends.Rds') }} - restore-keys: ${{ matrix.config.os }}-r-${{ matrix.config.r }} + key: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-20 + restore-keys: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-20 + - name: Update AMR package dependencies + run: | + install.packages("data-raw/AMR_latest.tar.gz") + source("data-raw/_install_deps.R") + shell: Rscript {0} + - name: Session info run: | options(width = 100) @@ -161,10 +161,10 @@ jobs: R CMD check AMR --no-manual --no-vignettes shell: bash - - name: Show testthat output + - name: Show unit tests output if: always() run: | - find . -name 'testthat.Rout*' -exec cat '{}' \; || true + find . -name 'tinytest.Rout*' -exec cat '{}' \; || true shell: bash - name: Upload check results diff --git a/tests/tinytest.R b/tests/tinytest.R index e4cd572b..662c3393 100644 --- a/tests/tinytest.R +++ b/tests/tinytest.R @@ -25,6 +25,7 @@ # test only on GitHub Actions and at home - not on CRAN as tests are lengthy if (identical(Sys.getenv("R_TINYTEST"), "true")) { + print(as.data.frame(utils::installed.packages())[, "Version", drop = FALSE]) library(tinytest) library(AMR) test_package("AMR")