mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-18 08:53:42 +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:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: r-lib/actions/setup-pandoc@v2
|
||||||
- name: Set up R
|
- name: Set up R
|
||||||
uses: r-lib/actions/setup-r@v2
|
uses: r-lib/actions/setup-r@v2
|
||||||
with:
|
with:
|
||||||
|
|
@ -93,15 +94,7 @@ jobs:
|
||||||
install.packages(c("cmdstanr", "posterior"), repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
|
install.packages(c("cmdstanr", "posterior"), repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
- name: Check
|
- name: Check
|
||||||
env:
|
uses: r-lib/actions/check-r-package@v2
|
||||||
_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
|
|
||||||
with:
|
with:
|
||||||
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
|
working-directory: "R/"
|
||||||
path: check
|
upload-snapshots: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue