Skip to content

Commit

Permalink
Merge branch 'devel' of github.com:waldronlab/MultiAssayExperiment in…
Browse files Browse the repository at this point in the history
…to devel
  • Loading branch information
LiNk-NY committed Feb 2, 2024
2 parents 5548b03 + a20e340 commit 131e0bf
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr_check.yml
Expand Up @@ -16,6 +16,7 @@ jobs:

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
CRAN: https://packagemanager.posit.co/cran/__linux__/jammy/latest
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
Expand All @@ -24,7 +25,7 @@ jobs:

- name: Query dependencies
run: |
BiocManager::install(c("remotes", "Bioconductor/BiocManager"))
BiocManager::install("remotes")
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}

Expand All @@ -38,7 +39,6 @@ jobs:

- name: Install Dependencies
run: |
options(repos = c(CRAN = "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"))
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories())
BiocManager::install(c("rcmdcheck", "BiocCheck"), ask = FALSE, update = TRUE)
shell: Rscript {0}
Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/test-coverage.yaml
@@ -0,0 +1,69 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: devel

name: test-coverage

jobs:
test-coverage:
runs-on: ubuntu-22.04
container: bioconductor/bioconductor_docker:devel
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
CRAN: https://packagemanager.posit.co/cran/__linux__/jammy/latest
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Query dependencies
run: |
BiocManager::install(c("remotes", "covr"))
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
with:
path: /usr/local/lib/R/site-library
key: ${{ runner.os }}-r-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-r-1-

- name: Install Dependencies
run: |
remotes::install_deps(dependencies = TRUE, repos = BiocManager::repositories())
BiocManager::install("rcmdcheck", ask = FALSE, update = TRUE)
shell: Rscript {0}

- name: Check Package
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual"), error_on = "error", check_dir = "check")
shell: Rscript {0}

- name: Test coverage
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
shell: Rscript {0}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -6,7 +6,7 @@ https://doi.org/10.1158/0008-5472.CAN-17-0344

[![BioC status](http://www.bioconductor.org/shields/build/release/bioc/MultiAssayExperiment.svg)](https://bioconductor.org/checkResults/release/bioc-LATEST/MultiAssayExperiment)
[![Platforms](http://www.bioconductor.org/shields/availability/release/MultiAssayExperiment.svg)](https://www.bioconductor.org/packages/release/bioc/html/MultiAssayExperiment.html#archives)
[![Coverage Status](https://codecov.io/github/waldronlab/MultiAssayExperiment/coverage.svg?branch=devel)](https://codecov.io/github/waldronlab/MultiAssayExperiment?branch=devel)
[![codecov](https://codecov.io/gh/waldronlab/MultiAssayExperiment/graph/badge.svg?token=MjYxSY7TGt)](https://codecov.io/gh/waldronlab/MultiAssayExperiment)
[![Downloads](http://www.bioconductor.org/shields/downloads/release/MultiAssayExperiment.svg)](https://bioconductor.org/packages/stats/bioc/MultiAssayExperiment)

## Installation
Expand Down

0 comments on commit 131e0bf

Please sign in to comment.