Skip to content

Commit

Permalink
Disable results model code when running covr
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Sep 18, 2023
1 parent 800e952 commit 118933c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/R_CMD_check_Hades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
matrix:
config:
- {os: windows-latest, r: '4.2.3', rtools: '42', rspm: "https://cloud.r-project.org"}
- {os: macOS-latest, r: '4.2.3', rtools: '42', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-20.04, r: '4.2.3', rtools: '42', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: windows-latest, r: 'release', rtools: '', rspm: "https://cloud.r-project.org"}
- {os: macOS-latest, r: 'release', rtools: '', rspm: "https://cloud.r-project.org"}
- {os: ubuntu-20.04, r: 'release', rtools: '', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
#- {os: macOS-latest, r: '4.2.3', rtools: '42', rspm: "https://cloud.r-project.org"}
#- {os: ubuntu-20.04, r: '4.2.3', rtools: '42', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
#- {os: windows-latest, r: 'release', rtools: '', rspm: "https://cloud.r-project.org"}
#- {os: macOS-latest, r: 'release', rtools: '', rspm: "https://cloud.r-project.org"}
#- {os: ubuntu-20.04, r: 'release', rtools: '', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}

env:
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion tests/testthat/test-Strategus.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ test_that("Run unit test study", {
resultsConnectionDetailsReference <- NULL
resultsDatabaseSchema <- NULL

if (dbms == "sqlite") {
# Only run this code if we're testing on SQLite
# AND we're not running code coverage checks
if (dbms == "sqlite" && identical(tolower(Sys.getenv("R_COVR")), "false")) {
resultsConnectionDetailsReference <- "result-store"
resultsDatabaseSchema <- "main"
Strategus::storeConnectionDetails(
Expand Down

0 comments on commit 118933c

Please sign in to comment.