Skip to content

Commit

Permalink
Update coverage-local.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmafelix authored Mar 20, 2024
1 parent 4ee664b commit bbb1436
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/coverage-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,26 @@ jobs:
extra-packages: any::covr
needs: coverage

- name: Cache C++ and R dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/R
~/.local/share/R
key: dependencies-${{ runner.os }}-${{ hashFiles('**/DESCRIPTION') }}
restore-keys: |
dependencies-${{ runner.os }}-
- name: Test coverage
run: |
Rscript -e "writeLines(as.character(covr::coverage_to_list()$totalcoverage), '${{ runner.temp }}/package/local_cov.Rout')"
Rscript -e "writeLines(as.character(covr::coverage_to_list()$totalcoverage), 'local_cov.Rout')"
shell: bash

- name: Get Values
id: get-values
shell: bash
run: |
COV=$(echo '${{ runner.temp }}/package/local_conv.Rout')
COV=$(cat '${{ github.workspace }}/local_conv.Rout')
echo "coverage=$COV" >> $GITHUB_OUTPUT
- name: Checkout gh-pages
Expand Down

0 comments on commit bbb1436

Please sign in to comment.