Skip to content

R-check

R-check #148

# 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-ignore: gh-pages
pull_request:
branches-ignore: gh-pages
schedule:
- cron: "0 0 * * 2"
name: R-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
# - {os: windows-latest, r: 'release'}
# - {os: macOS-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}
# - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
- name: Set up DESCRIPTION
run: make DESCRIPTION
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck github::cran/ReorderCluster
needs: check
- name: install modules package (https://github.com/r-lib/actions/issues/534)
run: remotes::install_github("klmr/modules")
shell: Rscript {0}
- name: make prepare
run: make prepare
- name: make test
run: make test