Skip to content

Commit

Permalink
Update tests and CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Jun 5, 2024
1 parent ff5ab62 commit 00fdd41
Show file tree
Hide file tree
Showing 5 changed files with 110 additions and 102 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.rstan }} RStan - ${{ matrix.config.os }} (${{ matrix.config.r }})
name: RStan - ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- { os: macOS-latest, r: 'devel' }
- { os: macOS-latest, r: 'devel'}
- { os: macOS-latest, r: 'release' }
- { os: macOS-latest, r: 'oldrel' }
- { os: windows-latest, r: 'devel' }
Expand All @@ -41,14 +41,22 @@ jobs:
- uses: n1hility/cancel-previous-runs@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
if: "!startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/master'"

- uses: actions/checkout@main

- uses: r-lib/actions/setup-r@v2-branch
- name: Use CRAN RStan/StanHeaders
uses: r-lib/actions/setup-r@v2-branch
if: matrix.config.r != 'devel'
with:
r-version: ${{ matrix.config.r }}

- name: Use Devel RStan/StanHeaders
uses: r-lib/actions/setup-r@v2-branch
if: matrix.config.r == 'devel'
with:
extra-repositories: 'https://stan-dev.r-universe.dev'
r-version: ${{ matrix.config.r }}

- uses: r-lib/actions/setup-pandoc@v2-branch
- uses: r-lib/actions/setup-r-dependencies@v2-branch
with:
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test_stan_clogit.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
suppressPackageStartupMessages(library(rstanarm))

SEED <- 123
ITER <- 500
CHAINS <- 2
ITER <- 1000
CHAINS <- 4
CORES <- 1
REFRESH <- 0

Expand Down
Loading

0 comments on commit 00fdd41

Please sign in to comment.