feat: Use safe accessor to vector elements #4531
Workflow file for this run
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
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag. | |
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions | |
on: | |
push: | |
branches: | |
- main | |
- fix/* | |
pull_request: | |
branches: | |
- main | |
- fix/* | |
schedule: | |
- cron: '0 2 * * *' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.sha }}-${{ github.base_ref || '' }} | |
cancel-in-progress: true | |
name: R-CMD-check-extra | |
jobs: | |
sanitizer: | |
runs-on: ubuntu-22.04 | |
name: Sanitizer | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: apt update | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libarpack2-dev | |
shell: bash | |
- name: run sanitizer | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: ghcr.io/krlmlr/rigraph-san:main | |
options: --rm --platform linux/amd64 -v ${{ github.workspace }}:/rigraph | |
run: | | |
set -e | |
printenv | |
cd rigraph | |
RDcsan CMD INSTALL . --no-byte-compile | |
TESTTHAT_PARALLEL=false CI=true RDcsan -q -e 'testthat::test_local(reporter = c("location", "summary"), load_package = "installed")' |