Skip to content

Use file-level expressions and avoid slow loop for whitespace_linter(… #2366

Use file-level expressions and avoid slow loop for whitespace_linter(…

Use file-level expressions and avoid slow loop for whitespace_linter(… #2366

# based on test-coverage, running testthat with options(warn = 2) to fail on test warnings
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
name: test-package
jobs:
test-package:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: local::.
- name: Run Tests
run: |
## --------------------------------------------------------------------
options(crayon.enabled = TRUE, warn = 2L)
if (Sys.getenv("_R_CHECK_FORCE_SUGGESTS_", "") == "") Sys.setenv("_R_CHECK_FORCE_SUGGESTS_" = "false")
testthat::test_dir("tests")
shell: Rscript {0}