Skip to content

Commit

Permalink
Merge pull request #138 from mrc-ide/mrc-5052
Browse files Browse the repository at this point in the history
FIx code coverage and restore 100%
  • Loading branch information
richfitz authored Jul 10, 2024
2 parents 6f7e3b1 + 29ce6b2 commit ef9d4c0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- name: Test coverage
run: |
covr::codecov(
token = "${{ secrets.CODECOV_TOKEN }}",
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: hipercow
Title: High Performance Computing
Version: 1.0.31
Version: 1.0.32
Authors@R: c(person("Rich", "FitzJohn", role = c("aut", "cre"),
email = "[email protected]"),
person("Wes", "Hinsley", role = "aut"),
Expand Down
6 changes: 3 additions & 3 deletions R/envvars.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ envvars_apply <- function(envvars, envir) {
}

envvars_export <- function(envvars, path) {
lines <- character(0)
if (!is.null(envvars)) {
vars <- envvars[!envvars$secret, ]
writeLines(sprintf("%s=%s", vars$name, vars$value), path)
} else {
file.create(path)
lines <- sprintf("%s=%s", vars$name, vars$value)
}
writeLines(lines, path)
}


Expand Down
6 changes: 3 additions & 3 deletions R/task-create.R
Original file line number Diff line number Diff line change
Expand Up @@ -542,11 +542,11 @@ task_export_envvars <- function(root, dst, envvars, inherit_envvars) {
envvars_export(envvars, dst)
} else {
src <- file.path(path_task(root$path$tasks, inherit_envvars), RENVIRON)
lines <- character(0)
if (fs::file_exists(src)) {
fs::file_copy(src, dst)
} else {
fs::file_create(dst)
lines <- readLines(src)
}
writeLines(lines, dst)
}
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/windows/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: hipercow.windows
Title: DIDE HPC Support for Windows
Version: 1.0.31
Version: 1.0.32
Authors@R: c(person("Rich", "FitzJohn", role = c("aut", "cre"),
email = "[email protected]"),
person("Wes", "Hinsley", role = "aut"),
Expand Down

0 comments on commit ef9d4c0

Please sign in to comment.