Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
katosh committed May 31, 2024
1 parent 4704da2 commit 96bf0a8
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: R-CMD-check

on: [push, pull_request]
on:
push:
pull_request:
branches:
- '**'

jobs:
R-CMD-check:
Expand All @@ -17,10 +21,14 @@ jobs:
- name: Set up R
uses: r-lib/actions/setup-r@v2

- name: Install dependencies
- name: Install Bioconductor packages
run: |
install.packages('BiocManager')
BiocManager::install(c('SingleCellExperiment', 'SummarizedExperiment', 'S4Vectors', 'Matrix'))
shell: Rscript {0}

- name: Install CRAN dependencies
run: |
install.packages('remotes')
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
Expand All @@ -30,10 +38,14 @@ jobs:
remotes::install_local()
shell: Rscript {0}

- name: Check package
run: |
R CMD check --no-manual --as-cran .
shell: bash

- name: Test coverage
run: |
install.packages('covr')
covr::codecov()
Rscript -e 'install.packages("covr"); covr::codecov()'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: Rscript {0}
shell: bash

0 comments on commit 96bf0a8

Please sign in to comment.