Skip to content

Commit

Permalink
changed R CMD check workflow etc
Browse files Browse the repository at this point in the history
  • Loading branch information
jr-leary7 committed Nov 24, 2023
1 parent 94cb5ba commit d9483be
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
Binary file modified .DS_Store
Binary file not shown.
12 changes: 4 additions & 8 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,16 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:

- name: Checkout repo
uses: actions/checkout@v3

- name: Setup Pandoc
uses: r-lib/actions/setup-pandoc@v2

- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: Setup dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand All @@ -50,7 +46,10 @@ jobs:
run: |
install.packages("Matrix", type = "source", force = TRUE)
install.packages("irlba", type = "source", force = TRUE)
install.packages("TMB", type = "source", force = TRUE)
install.packages("glmmTMB", type = "source", force = TRUE)
shell: Rscript {0}
working-directory: '.'
- name: Check
id: rcmdcheck
run: |
Expand All @@ -60,7 +59,6 @@ jobs:
check_results <- rcmdcheck::rcmdcheck(args = c("--no-vignettes", "--no-manual", "--as-cran"), build_args = c("--no-build-vignettes", "--no-manual"), check_dir = "check", error_on = "error")
shell: Rscript {0}
working-directory: '.'

- name: Show testthat output
if: always()
run: |
Expand All @@ -70,14 +68,12 @@ jobs:
echo ::endgroup::
shell: bash
working-directory: '.'

- name: Upload check results
if: failure()
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: ${{ steps.rcmdcheck.outputs.check-dir-path }}

- name: Upload snapshots
uses: actions/upload-artifact@v3
with:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/render-README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@ jobs:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
- uses: r-lib/actions/setup-pandoc@v2

- name: install CRAN packages
run: Rscript -e 'install.packages(c("rmarkdown","ggplot2", "dplyr", "purrr", "remotes", "devtools", "BiocManager", "Seurat"), force = TRUE)'
- name: Extra dependencies
id: extra-deps
run: |
install.packages("Matrix", type = "source", force = TRUE)
install.packages("irlba", type = "source", force = TRUE)
install.packages("TMB", type = "source", force = TRUE)
install.packages("glmmTMB", type = "source", force = TRUE)
shell: Rscript {0}
- name: install BioConductor packages
run: Rscript -e 'BiocManager::install(c("SingleCellExperiment", "scater", "scran", "scuttle", "bluster"), force = TRUE)'
- name: install GitHub packages
Expand Down

0 comments on commit d9483be

Please sign in to comment.