Review by records instead of subject_id
& form_id
"rv_row"
#363
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples | |
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | |
on: | |
push: | |
branches: [main, dev, devex] | |
pull_request: | |
branches: [main, dev, devex] | |
workflow_dispatch: | |
name: test-coverage | |
jobs: | |
test-coverage: | |
runs-on: ubuntu-latest | |
env: | |
RENV_PROFILE: "full" | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
RENV_CONFIG_SANDBOX_ENABLED: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-pandoc@v2 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
r-version: '4.4.1' | |
- uses: r-lib/actions/setup-tinytex@v2 | |
- run: tlmgr --version | |
- name: add libcurl Linux dependency | |
if: runner.os == 'Linux' | |
run: sudo apt-get install -y libcurl4-openssl-dev | |
- uses: r-lib/actions/setup-renv@v2 | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
packages: any::covr | |
needs: coverage | |
- name: Install clinsight | |
shell: bash | |
run: R CMD INSTALL --preclean . | |
- name: Test coverage | |
run: covr::codecov( | |
quiet = FALSE, | |
clean = FALSE, | |
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package"), | |
token = Sys.getenv("CODECOV_TOKEN") | |
) | |
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@v4 | |
with: | |
name: coverage-test-failures | |
path: ${{ runner.temp }}/package |