Skip to content

Commit

Permalink
Update github actions v2
Browse files Browse the repository at this point in the history
  • Loading branch information
klau506 committed Mar 20, 2024
1 parent 9c671f5 commit 32fbcc7
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: test-coverage
name: test_coverage

on:
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
GITHUB_PAT: ${{secrets.GH_GCAMREPORT_TOKEN}}
GITHUB_PAT: ${{secrets.GH_PAT_RFASST}}

steps:
- uses: actions/checkout@v2
Expand All @@ -36,14 +37,20 @@ jobs:
- name: Install dependencies
run: |
install.packages(c("remotes","rcmdcheck"), repos = "https://cloud.r-project.org")
remotes::install_deps(dependencies = TRUE)
install.packages(c("remotes","rcmdcheck","covr"), repos = "https://cloud.r-project.org")
remotes::install_github("JGCRI/rpackageutils")
remotes::install_github("bc3LC/rfasst@dev_k")
remotes::install_github("bc3LC/rfasst")
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

- name: Test coverage
run: |
cov <- covr::package_coverage()
covr:::report(cov, file = "coverage.xml")
shell: Rscript {0}

- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: bc3LC/rfasstui
token: ${{secrets.CODECOV_TOKEN}}
files: ./coverage.xml
verbose: true

0 comments on commit 32fbcc7

Please sign in to comment.