Skip to content

Fix more lints (#884) #156

Fix more lints (#884)

Fix more lints (#884) #156

# 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
#
# R CMD Check will fail on NOTE.
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week at 00:00 on Sunday
- cron: "0 0 * * SUN"
name: R-CMD-check-strict
jobs:
R-CMD-check-strict:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
# CRAN does not provide macOS binaries for R-devel, so some packages
# need to be built from source. To avoid that, use R-release.
- { os: macos-latest, r: "release" }
- { os: windows-latest, r: "devel" }
- { os: ubuntu-latest, r: "devel" }
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "3.1.8"
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: "release"
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: 2
pak-version: devel
needs: check
extra-packages: |
any::rcmdcheck
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
upload-results: true
error-on: '"note"'