Skip to content

r-valgrind

r-valgrind #473

Workflow file for this run

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