diff --git a/.github/workflows/DropSeq.dropulation.r.yml b/.github/workflows/DropSeq.dropulation.r.yml new file mode 100644 index 00000000..2ab0f1af --- /dev/null +++ b/.github/workflows/DropSeq.dropulation.r.yml @@ -0,0 +1,45 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + +name: DropSeq.dropulation R package + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + r-version: ['4.1.1'] + + steps: + - uses: actions/checkout@v3 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + setwd("src/R/packages/DropSeq.dropulation") + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} # this is needed because some deps are downloaded from github + - name: Check + run: | + setwd("src/R/packages/DropSeq.dropulation") + rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0}