Skip to content

Commit

Permalink
Run tinytest::test_package after INSTALL step
Browse files Browse the repository at this point in the history
  • Loading branch information
eddelbuettel committed Dec 1, 2023
1 parent e9b637e commit 53407bb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,22 @@ jobs:
- uses: actions/checkout@v4

- name: SessionInfo
run: R -q -e 'sessionInfo()'
run: Rscript -e 'sessionInfo()'

- name: System Dependencies
# this particular package needs cmake and curl and git to build
run: apt update -qq && apt install --yes --no-install-recommends cmake curl git

- name: Package Dependencies
run: R -q -e 'remotes::install_deps(".", dependencies=TRUE)'
run: Rscript -e 'remotes::install_deps(".", dependencies=TRUE)'

- name: Build Package
run: R CMD build --no-build-vignettes --no-manual .

- name: Install Package
# running an install step gives better logging on standard out than R CMD check which tucks this away
run: R CMD INSTALL --configure-args="--with-download=https://github.com/TileDB-Inc/TileDB/archive/refs/heads/dev.zip" $(ls -1tr *.tar.gz | tail -1)

#- name: Check Package
# run: R CMD check --no-vignettes --no-manual $(ls -1tr *.tar.gz | tail -1)
- name: Run Tests
# given that the package is installed and uses tinytest, we can easily run its tests
run: Rscript -e 'tinytest::test_package("tiledb")'

0 comments on commit 53407bb

Please sign in to comment.