diff --git a/.Rbuildignore b/.Rbuildignore index 4c866dfa0..b52473e75 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -13,4 +13,5 @@ RELEASE_CYCLE.md ^vignettes/chapter*.Rmd ^dev-functions$ .zenodo.json -.chapterInProgress.Rmd \ No newline at end of file +.chapterInProgress.Rmd +codecov.yml \ No newline at end of file diff --git a/.github/workflows/r_codecov.yml b/.github/workflows/r_codecov.yml index d950dd45c..cf9fa246e 100644 --- a/.github/workflows/r_codecov.yml +++ b/.github/workflows/r_codecov.yml @@ -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: @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - patch: off + steps: - uses: actions/checkout@v3 @@ -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} \ No newline at end of file + 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 \ No newline at end of file diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..d6a63572a --- /dev/null +++ b/codecov.yml @@ -0,0 +1,14 @@ +comment: false + +coverage: + status: + project: + default: + target: auto + threshold: 1% + informational: true + patch: + default: + target: auto + threshold: 1% + informational: true \ No newline at end of file diff --git a/vignettes/HouseHoldCoanalysis.Rmd b/vignettes/HouseHoldCoanalysis.Rmd index e1fe0f6c2..dfc2eede0 100644 --- a/vignettes/HouseHoldCoanalysis.Rmd +++ b/vignettes/HouseHoldCoanalysis.Rmd @@ -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