Skip to content

Commit

Permalink
improvements to r-cmd checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwesley committed Nov 25, 2024
1 parent c972126 commit f546a98
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ defaults:

jobs:
R-CMD-check:
name: ${{ matrix.os }}, R-${{ matrix.r}}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: 'ubuntu-latest', r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}

- {os: windows-latest, r: 'oldrel'}
runs-on: ${{ matrix.config.os }}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: 'true'
Expand Down Expand Up @@ -66,10 +66,12 @@ jobs:
sudo $cmd
done < <(Rscript -e "writeLines(remotes::system_requirements('$ID-$VERSION_ID'))")
- name: Install greta dependencies
- name: Install greta and dependencies
shell: Rscript {0}
run: |
install.packages("greta", repos = c("https://greta-dev.r-universe.dev", "https://cloud.r-project.org"))
install.packages("remotes", repos = "https://cloud.r-project.org")
install.packages("rcmdcheck", repos = "https://cloud.r-project.org")
install.packages("sessioninfo", repos = "https://cloud.r-project.org")
library(greta)
install_greta_deps(timeout = 120)
Expand All @@ -80,7 +82,9 @@ jobs:
shell: Rscript {0}

- name: Install package + deps
run: remotes::install_local(dependencies = TRUE, force = TRUE)
run: |
remotes::install_local(dependencies = TRUE, force = TRUE)
- name: R CMD check
run: rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')
Expand Down

0 comments on commit f546a98

Please sign in to comment.