Merge pull request #198 from StochasticTree/rng_seed_debug #459
This file contains hidden or 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
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
release: | |
types: [published] | |
workflow_dispatch: | |
name: R Package Unit Tests | |
jobs: | |
testing: | |
name: test-r | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Prevent conversion of line endings on Windows | |
if: startsWith(matrix.os, 'windows') | |
shell: pwsh | |
run: git config --global core.autocrlf false | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
extra-packages: any::testthat, any::decor, any::rcmdcheck | |
needs: check | |
- name: Create a CRAN-ready version of the R package | |
run: | | |
Rscript cran-bootstrap.R 0 0 1 | |
- uses: r-lib/actions/check-r-package@v2 | |
with: | |
working-directory: 'stochtree_cran' |