Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Github actions #119

Merged
merged 12 commits into from
Feb 11, 2022
Merged
10 changes: 4 additions & 6 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,13 @@ jobs:
git clone git@github.com:Gilead-BioStats/clindata.git
cd gsm

- name: load clindata
- name: install packages
shell: Rscript {0}
run: |
install.packages("devtools")
devtools::load_all('../clindata')

- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: rcmdcheck
devtools::install('../clindata')
devtools::install(dependencies=TRUE)
install.packages('rcmdcheck')

- uses: r-lib/actions/check-r-package@v1

Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,30 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: ${{ secrets.LOAD_CLINDATA }}

- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: covr
- name: Clone clindata
run: |
cd ..
git clone git@github.com:Gilead-BioStats/clindata.git
cd gsm

- name: install packages
shell: Rscript {0}
run: |
install.packages("devtools")
devtools::install('../clindata')
devtools::install(dependencies=TRUE)
install.packages('covr')

- name: Test coverage
run: covr::codecov()
run: covr::package_coverage()
shell: Rscript {0}
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ Suggests:
covr,
clindata
LazyData: true
Remotes:
phuse-org/valtools
Roxygen: list(markdown = TRUE)
Remotes:
Gilead-BioStats/clindata
RoxygenNote: 7.1.2
Config/testthat/edition: 3