Skip to content

Commit

Permalink
Merge pull request #998 from wadpac/issue997_codecov
Browse files Browse the repository at this point in the history
control codecov behaviour
  • Loading branch information
vincentvanhees authored Dec 13, 2023
2 parents 0603c51 + d5bbd13 commit 55f233b
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ RELEASE_CYCLE.md
^vignettes/chapter*.Rmd
^dev-functions$
.zenodo.json
.chapterInProgress.Rmd
.chapterInProgress.Rmd
codecov.yml
30 changes: 25 additions & 5 deletions .github/workflows/r_codecov.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# 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:
Expand All @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
patch: off

steps:
- uses: actions/checkout@v3

Expand All @@ -23,8 +23,28 @@ jobs:

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: covr
extra-packages: any::covr
needs: coverage

- name: Test coverage
run: covr::codecov()
shell: Rscript {0}
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
14 changes: 14 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
comment: false

coverage:
status:
project:
default:
target: auto
threshold: 1%
informational: true
patch:
default:
target: auto
threshold: 1%
informational: true
2 changes: 1 addition & 1 deletion vignettes/HouseHoldCoanalysis.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ you will find csv files with the time series per household.

The data dictionary below shows the column names you would get for a household with
two members: X and Y. Most of the columns are copied from the time series output files, which
are documented [here](https://cran.r-project.org/web/packages/GGIR/vignettes/GGIR.html#571_Time_series_output_files).
are documented [here](https://cran.r-project.org/package=GGIR/vignettes/GGIR.html#571_Time_series_output_files).
Therefore, those column are not documented here.

Variable name | Description
Expand Down

0 comments on commit 55f233b

Please sign in to comment.