diff --git a/.github/workflows/check-fixed.yaml b/.github/workflows/check-fixed.yaml index dfd83c0..671666f 100644 --- a/.github/workflows/check-fixed.yaml +++ b/.github/workflows/check-fixed.yaml @@ -32,6 +32,12 @@ jobs: http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck, local::. + needs: check + cache-version: 2 + - name: Repos run: | cat("\noptions(repos=c(stan='https://mc-stan.org/r-packages/',CRAN ='https://cloud.r-project.org'))\n", file = "~/.Rprofile", append = TRUE) @@ -46,12 +52,6 @@ jobs: file.rename(cmdstanr::cmdstan_path(), cmdstan) lines <- paste0("\nCMDSTAN=", cmdstan, "\n") cat(lines, file = "~/.Renviron", append = TRUE) - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: any::rcmdcheck, local::. - needs: check - cache-version: 2 - uses: r-lib/actions/check-r-package@v2 with: diff --git a/.github/workflows/check-implicit.yaml b/.github/workflows/check-implicit.yaml index c4abba1..9aeef43 100644 --- a/.github/workflows/check-implicit.yaml +++ b/.github/workflows/check-implicit.yaml @@ -37,6 +37,12 @@ jobs: http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck, local::. + needs: check + cache-version: 2 + - name: Repos run: | cat("\noptions(repos=c(stan='https://mc-stan.org/r-packages/',CRAN ='https://cloud.r-project.org'))\n", file = "~/.Rprofile", append = TRUE) @@ -48,12 +54,6 @@ jobs: install.packages("cmdstanr") cmdstanr::check_cmdstan_toolchain(fix = TRUE) cmdstanr::install_cmdstan() - - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: any::rcmdcheck, local::. - needs: check - cache-version: 2 - uses: r-lib/actions/check-r-package@v2 with: diff --git a/.github/workflows/cover.yaml b/.github/workflows/cover.yaml index 6ece027..bd77b19 100644 --- a/.github/workflows/cover.yaml +++ b/.github/workflows/cover.yaml @@ -20,6 +20,12 @@ jobs: use-public-rspm: true extra-repositories: 'https://mc-stan.org/r-packages/' + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::covr, local::. + needs: coverage + cache-version: 2 + - name: Repos run: | cat("\noptions(repos=c(stan='https://mc-stan.org/r-packages/',CRAN ='https://cloud.r-project.org'))\n", file = "~/.Rprofile", append = TRUE) @@ -31,12 +37,6 @@ jobs: install.packages("cmdstanr") cmdstanr::install_cmdstan() - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: any::covr, local::. - needs: coverage - cache-version: 2 - - name: Test coverage run: | covr::codecov( diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index eef596e..e9640cd 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -26,7 +26,12 @@ jobs: - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true - extra-repositories: 'https://mc-stan.org/r-packages/' + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::pkgdown, local::. + needs: website + cache-version: 2 - name: Repos run: | @@ -39,12 +44,6 @@ jobs: install.packages("cmdstanr") cmdstanr::install_cmdstan() - - uses: r-lib/actions/setup-r-dependencies@v2 - with: - extra-packages: any::pkgdown, local::. - needs: website - cache-version: 2 - - name: Build site run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) shell: Rscript {0}