Skip to content

Commit

Permalink
CI: install SeuratData after setup-r-dependencies
Browse files Browse the repository at this point in the history
setup-r-dependencies installs pre-built binary packages even on Linux
  • Loading branch information
ilia-kats committed Sep 11, 2023
1 parent c1c18e7 commit 83a01c3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
if: runner.os == 'macOS'
run: brew install hdf5

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck

- name: Install SeuratData
if: always()
run: Rscript -e "install.packages(c('remotes', 'Seurat'), repos = 'http://cran.us.r-project.org'); remotes:::install_github('satijalab/seurat-data')"
shell: bash

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck

- uses: r-lib/actions/check-r-package@v2

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name: pkgdown

jobs:
pkgdown:
runs-on: macOS-latest
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
Expand All @@ -20,14 +20,14 @@ jobs:
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.

- name: Install SeuratData
if: always()
run: Rscript -e "install.packages(c('remotes', 'Seurat'), repos = 'http://cran.us.r-project.org'); remotes:::install_github('satijalab/seurat-data')"
shell: bash

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
Expand Down

0 comments on commit 83a01c3

Please sign in to comment.