Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk committed Feb 2, 2024
1 parent 2414824 commit 0d54c93
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 18 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/R-CMD-as-cran-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,17 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
dependencies: NA
extra-packages: |
stan-dev/cmdstanr
testthat
- name: Install cmdstan
run: |
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
cmdstanr::install_cmdstan(cores = 2, quiet = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
upload-snapshots: true
19 changes: 10 additions & 9 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install cmdstan Linux system dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev || true
sudo apt-get install -y openmpi-bin openmpi-common libopenmpi-dev || true
sudo apt-get install -y libpng-dev || true
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
Expand All @@ -65,8 +58,16 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
dependencies: NA
extra-packages: |
stan-dev/cmdstanr
testthat
- name: Install cmdstan
run: |
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
cmdstanr::install_cmdstan(cores = 2, quiet = TRUE)
shell: Rscript {0}

- uses: r-lib/actions/check-r-package@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-only-changed-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
dependencies: NA
extra-packages: |
any::gh
any::lintr
any::purrr
needs: check
- name: Add lintr options
run: |
Expand All @@ -44,4 +44,4 @@ jobs:
lintr::lint_package(exclusions = exclusions_list)
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
LINTR_ERROR_ON_LINT: true
3 changes: 2 additions & 1 deletion .github/workflows/synthetic-validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
dependencies: NA
extra-packages: |
dplyr
tidyr
Expand All @@ -48,4 +49,4 @@ jobs:
with:
name: fits
retention-days: 5
path: synthetic.rds
path: synthetic.rds
15 changes: 12 additions & 3 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,18 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
needs: coverage
dependencies: NA
extra-packages: |
covr
stan-dev/cmdstanr
testthat
- name: Install cmdstan
run: |
cmdstanr::check_cmdstan_toolchain(fix = TRUE)
cmdstanr::install_cmdstan(cores = 2, quiet = TRUE)
shell: Rscript {0}

- name: Test coverage
run: covr::codecov(quiet = FALSE)
shell: Rscript {0}
shell: Rscript {0}

0 comments on commit 0d54c93

Please sign in to comment.