Skip to content

Commit

Permalink
remove extra steps
Browse files Browse the repository at this point in the history
  • Loading branch information
LiNk-NY committed Aug 14, 2024
1 parent 255e1e9 commit e710b97
Showing 1 changed file with 11 additions and 36 deletions.
47 changes: 11 additions & 36 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,46 +6,28 @@ on:

name: test-coverage

permissions: read-all

jobs:
test-coverage:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
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@v4

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

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

- 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 = "--no-manual", error_on = "error", check_dir = "check")
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, any::xml2
needs: coverage

- name: Test coverage
- name: Run package coverage
run: |
cov <- covr::package_coverage(
quiet = FALSE,
Expand All @@ -64,10 +46,3 @@ jobs:
plugin: noop
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload artifact on failure
if: failure()
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package

0 comments on commit e710b97

Please sign in to comment.