mirror of
https://github.com/msberends/AMR.git
synced 2024-12-26 04:06:12 +01:00
covr update
This commit is contained in:
parent
0b1f59edec
commit
adca43f8d9
5
.github/workflows/codecovr.yaml
vendored
5
.github/workflows/codecovr.yaml
vendored
@ -71,12 +71,15 @@ jobs:
|
|||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
|
|
||||||
- name: Test coverage
|
- name: Test coverage
|
||||||
|
env:
|
||||||
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
library(AMR)
|
library(AMR)
|
||||||
library(tinytest)
|
library(tinytest)
|
||||||
source_files <- list.files("AMR/R", pattern = ".R$", full.names = TRUE)
|
source_files <- list.files("AMR/R", pattern = ".R$", full.names = TRUE)
|
||||||
test_files <- list.files("AMR/inst/tinytest", full.names = TRUE)
|
test_files <- list.files("AMR/inst/tinytest", full.names = TRUE)
|
||||||
cov <- covr::file_coverage(source_files = source_files, test_files = test_files, parent_env = asNamespace("AMR"), line_exclusions = list("R/atc_online.R", "R/mo_source.R", "R/translate.R", "R/resistance_predict.R", "R/aa_helper_functions.R", "R/aa_helper_pm_functions.R", "R/zzz.R"))
|
cov <- covr::file_coverage(source_files = source_files, test_files = test_files, parent_env = asNamespace("AMR"), line_exclusions = list("R/atc_online.R", "R/mo_source.R", "R/translate.R", "R/resistance_predict.R", "R/aa_helper_functions.R", "R/aa_helper_pm_functions.R", "R/zzz.R"))
|
||||||
attr(cov, which = "package") <- list(path = "AMR") # until https://github.com/r-lib/covr/issues/478 is solved
|
print(cov)
|
||||||
|
attr(cov, which = "package") <- list(path = "") # until https://github.com/r-lib/covr/issues/478 is solved
|
||||||
covr::codecov(cov, quiet = FALSE)
|
covr::codecov(cov, quiet = FALSE)
|
||||||
shell: Rscript {0}
|
shell: Rscript {0}
|
||||||
|
Loading…
Reference in New Issue
Block a user