Skip to content

Merge branch 'master' into development #95

Merge branch 'master' into development

Merge branch 'master' into development #95

# Check posteriordb
name: check_posteriordb_content
on:
push:
branches:
- master
- development
pull_request:
branches:
- master
- development
jobs:
models:
name: Check posteriordb content
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
fail-fast: false
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- name: Install curl
if: runner.os == 'Linux'
run: |
sudo apt-get install libcurl4-openssl-dev
- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('DESCRIPTION') }}
- name: Install packages
run: |
R -e 'install.packages(c("remotes"))'
R -e 'remotes::install_github("stan-dev/posteriordb-r", dependencies = TRUE)'
- name: Set PDB path
run: export PDB_PATH=$GITHUB_WORKSPACE;echo $PDB_PATH;echo PDB_PATH="$PDB_PATH" >> ~/.Renviron;ls $PDB_PATH
shell: bash
- name: Check PDB content
run: Rscript tests/check_posteriordb_content.R