r-valgrind #473
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: r-valgrind | |
on: | |
# allows for 'as needed' manual trigger | |
workflow_dispatch: | |
# use a regular nighly build as well (time is UTC) | |
schedule: | |
- cron: "23 4 * * *" | |
env: | |
_R_CHECK_TESTS_NLINES_: 0 | |
TILEDB_SOMA_INIT_BUFFER_BYTES: 33554432 # accommodate tiny runners | |
jobs: | |
r-valgrind: | |
runs-on: ubuntu-24.04 | |
container: | |
image: rocker/r2u:latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: SessionInfo | |
run: R -q -e 'sessionInfo()' | |
- name: System Dependencies | |
run: apt update -qq && apt upgrade --yes && apt install --yes --no-install-recommends valgrind cmake git | |
- name: Package Dependencies | |
run: cd apis/r && R -q -e 'remotes::install_deps(".", dependencies=TRUE, upgrade=FALSE)' | |
- name: Build Package | |
run: cd apis/r && R CMD build --no-build-vignettes --no-manual . | |
- name: Check Package under valgrind | |
# we unsetting environment variable CI for non-extended set of tests | |
run: cd apis/r && CI="" VALGRIND_OPTS="-s --leak-check=full --max-threads=1024" R CMD check --use-valgrind --no-vignettes --no-manual $(ls -1tr *.tar.gz | tail -1) | |
- name: Display Test Output | |
run: cd apis/r/tiledbsoma.Rcheck/tests && cat testthat.Rout |