mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-07-29 20:14:08 +00:00
Update check config for R Github Actions (#2439)
This commit is contained in:
parent
8cf3ba9e46
commit
a90c4f6e72
1 changed files with 4 additions and 11 deletions
15
.github/workflows/build-and-test.yml
vendored
15
.github/workflows/build-and-test.yml
vendored
|
|
@ -59,6 +59,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: r-lib/actions/setup-pandoc@v2
|
||||
- name: Set up R
|
||||
uses: r-lib/actions/setup-r@v2
|
||||
with:
|
||||
|
|
@ -93,15 +94,7 @@ jobs:
|
|||
install.packages(c("cmdstanr", "posterior"), repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
|
||||
shell: Rscript {0}
|
||||
- name: Check
|
||||
env:
|
||||
_R_CHECK_CRAN_INCOMING_REMOTE_: false
|
||||
run: |
|
||||
options(crayon.enabled = TRUE)
|
||||
rcmdcheck::rcmdcheck(path = "R/", args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
|
||||
shell: Rscript {0}
|
||||
- name: Upload check results
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@main
|
||||
uses: r-lib/actions/check-r-package@v2
|
||||
with:
|
||||
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
|
||||
path: check
|
||||
working-directory: "R/"
|
||||
upload-snapshots: true
|
||||
|
|
|
|||
Loading…
Reference in a new issue