Skip to content

Commit

Permalink
Disable Mac 4.2.3 tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonysena committed Jan 17, 2024
1 parent 6ae0843 commit c2c584f
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 77 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/R_CMD_check_Hades.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
fail-fast: false
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: 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"}

env:
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
Expand Down
142 changes: 71 additions & 71 deletions tests/testthat/setup.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,77 +104,77 @@ if (!(Sys.getenv("CDM5_POSTGRESQL_USER") == "" &
)
}

# # Oracle
# if (!(Sys.getenv("CDM5_ORACLE_USER") == "" &
# Sys.getenv("CDM5_ORACLE_PASSWORD") == "" &
# Sys.getenv("CDM5_ORACLE_SERVER") == "" &
# Sys.getenv("CDM5_ORACLE_CDM_SCHEMA") == "" &
# Sys.getenv("CDM5_ORACLE_OHDSI_SCHEMA") == "")) {
# DatabaseConnector::downloadJdbcDrivers("oracle")
# connectionDetailsList[[length(connectionDetailsList) + 1]] <- list(
# connectionDetails = DatabaseConnector::createConnectionDetails(
# dbms = "oracle",
# user = Sys.getenv("CDM5_ORACLE_USER"),
# password = URLdecode(Sys.getenv("CDM5_ORACLE_PASSWORD")),
# server = Sys.getenv("CDM5_ORACLE_SERVER"),
# port = 1521,
# pathToDriver = Sys.getenv("DATABASECONNECTOR_JAR_FOLDER")
# ),
# cdmDatabaseSchema = Sys.getenv("CDM5_ORACLE_CDM_SCHEMA"),
# workDatabaseSchema = Sys.getenv("CDM5_ORACLE_OHDSI_SCHEMA"),
# vocabularyDatabaseSchema = Sys.getenv("CDM5_ORACLE_CDM_SCHEMA"),
# cohortTableNames = cohortTableNames,
# tempEmulationSchema = Sys.getenv("CDM5_ORACLE_OHDSI_SCHEMA")
# )
# }
#
# # RedShift
# if (!(Sys.getenv("CDM5_REDSHIFT_USER") == "" &
# Sys.getenv("CDM5_REDSHIFT_PASSWORD") == "" &
# Sys.getenv("CDM5_REDSHIFT_SERVER") == "" &
# Sys.getenv("CDM5_REDSHIFT_CDM_SCHEMA") == "" &
# Sys.getenv("CDM5_REDSHIFT_OHDSI_SCHEMA") == "")) {
# DatabaseConnector::downloadJdbcDrivers("redshift")
# connectionDetailsList[[length(connectionDetailsList) + 1]] <- list(
# connectionDetails = DatabaseConnector::createConnectionDetails(
# dbms = "redshift",
# user = Sys.getenv("CDM5_REDSHIFT_USER"),
# password = URLdecode(Sys.getenv("CDM5_REDSHIFT_PASSWORD")),
# server = Sys.getenv("CDM5_REDSHIFT_SERVER"),
# port = 5439,
# pathToDriver = Sys.getenv("DATABASECONNECTOR_JAR_FOLDER")
# ),
# cdmDatabaseSchema = Sys.getenv("CDM5_REDSHIFT_CDM_SCHEMA"),
# workDatabaseSchema = Sys.getenv("CDM5_REDSHIFT_OHDSI_SCHEMA"),
# vocabularyDatabaseSchema = Sys.getenv("CDM5_REDSHIFT_CDM_SCHEMA"),
# cohortTableNames = cohortTableNames,
# tempEmulationSchema = NULL
# )
# }
#
# # SQL Server
# if (!(Sys.getenv("CDM5_SQL_SERVER_USER") == "" &
# Sys.getenv("CDM5_SQL_SERVER_PASSWORD") == "" &
# Sys.getenv("CDM5_SQL_SERVER_SERVER") == "" &
# Sys.getenv("CDM5_SQL_SERVER_CDM_SCHEMA") == "" &
# Sys.getenv("CDM5_SQL_SERVER_OHDSI_SCHEMA") == "")) {
# DatabaseConnector::downloadJdbcDrivers("sql server")
# connectionDetailsList[[length(connectionDetailsList) + 1]] <- list(
# connectionDetails = DatabaseConnector::createConnectionDetails(
# dbms = "sql server",
# user = Sys.getenv("CDM5_SQL_SERVER_USER"),
# password = URLdecode(Sys.getenv("CDM5_SQL_SERVER_PASSWORD")),
# server = Sys.getenv("CDM5_SQL_SERVER_SERVER"),
# port = 1433,
# pathToDriver = Sys.getenv("DATABASECONNECTOR_JAR_FOLDER")
# ),
# cdmDatabaseSchema = Sys.getenv("CDM5_SQL_SERVER_CDM_SCHEMA"),
# workDatabaseSchema = Sys.getenv("CDM5_SQL_SERVER_OHDSI_SCHEMA"),
# vocabularyDatabaseSchema = Sys.getenv("CDM5_SQL_SERVER_CDM_SCHEMA"),
# cohortTableNames = cohortTableNames,
# tempEmulationSchema = NULL
# )
# }
# Oracle
if (!(Sys.getenv("CDM5_ORACLE_USER") == "" &
Sys.getenv("CDM5_ORACLE_PASSWORD") == "" &
Sys.getenv("CDM5_ORACLE_SERVER") == "" &
Sys.getenv("CDM5_ORACLE_CDM_SCHEMA") == "" &
Sys.getenv("CDM5_ORACLE_OHDSI_SCHEMA") == "")) {
DatabaseConnector::downloadJdbcDrivers("oracle")
connectionDetailsList[[length(connectionDetailsList) + 1]] <- list(
connectionDetails = DatabaseConnector::createConnectionDetails(
dbms = "oracle",
user = Sys.getenv("CDM5_ORACLE_USER"),
password = URLdecode(Sys.getenv("CDM5_ORACLE_PASSWORD")),
server = Sys.getenv("CDM5_ORACLE_SERVER"),
port = 1521,
pathToDriver = Sys.getenv("DATABASECONNECTOR_JAR_FOLDER")
),
cdmDatabaseSchema = Sys.getenv("CDM5_ORACLE_CDM_SCHEMA"),
workDatabaseSchema = Sys.getenv("CDM5_ORACLE_OHDSI_SCHEMA"),
vocabularyDatabaseSchema = Sys.getenv("CDM5_ORACLE_CDM_SCHEMA"),
cohortTableNames = cohortTableNames,
tempEmulationSchema = Sys.getenv("CDM5_ORACLE_OHDSI_SCHEMA")
)
}

# RedShift
if (!(Sys.getenv("CDM5_REDSHIFT_USER") == "" &
Sys.getenv("CDM5_REDSHIFT_PASSWORD") == "" &
Sys.getenv("CDM5_REDSHIFT_SERVER") == "" &
Sys.getenv("CDM5_REDSHIFT_CDM_SCHEMA") == "" &
Sys.getenv("CDM5_REDSHIFT_OHDSI_SCHEMA") == "")) {
DatabaseConnector::downloadJdbcDrivers("redshift")
connectionDetailsList[[length(connectionDetailsList) + 1]] <- list(
connectionDetails = DatabaseConnector::createConnectionDetails(
dbms = "redshift",
user = Sys.getenv("CDM5_REDSHIFT_USER"),
password = URLdecode(Sys.getenv("CDM5_REDSHIFT_PASSWORD")),
server = Sys.getenv("CDM5_REDSHIFT_SERVER"),
port = 5439,
pathToDriver = Sys.getenv("DATABASECONNECTOR_JAR_FOLDER")
),
cdmDatabaseSchema = Sys.getenv("CDM5_REDSHIFT_CDM_SCHEMA"),
workDatabaseSchema = Sys.getenv("CDM5_REDSHIFT_OHDSI_SCHEMA"),
vocabularyDatabaseSchema = Sys.getenv("CDM5_REDSHIFT_CDM_SCHEMA"),
cohortTableNames = cohortTableNames,
tempEmulationSchema = NULL
)
}

# SQL Server
if (!(Sys.getenv("CDM5_SQL_SERVER_USER") == "" &
Sys.getenv("CDM5_SQL_SERVER_PASSWORD") == "" &
Sys.getenv("CDM5_SQL_SERVER_SERVER") == "" &
Sys.getenv("CDM5_SQL_SERVER_CDM_SCHEMA") == "" &
Sys.getenv("CDM5_SQL_SERVER_OHDSI_SCHEMA") == "")) {
DatabaseConnector::downloadJdbcDrivers("sql server")
connectionDetailsList[[length(connectionDetailsList) + 1]] <- list(
connectionDetails = DatabaseConnector::createConnectionDetails(
dbms = "sql server",
user = Sys.getenv("CDM5_SQL_SERVER_USER"),
password = URLdecode(Sys.getenv("CDM5_SQL_SERVER_PASSWORD")),
server = Sys.getenv("CDM5_SQL_SERVER_SERVER"),
port = 1433,
pathToDriver = Sys.getenv("DATABASECONNECTOR_JAR_FOLDER")
),
cdmDatabaseSchema = Sys.getenv("CDM5_SQL_SERVER_CDM_SCHEMA"),
workDatabaseSchema = Sys.getenv("CDM5_SQL_SERVER_OHDSI_SCHEMA"),
vocabularyDatabaseSchema = Sys.getenv("CDM5_SQL_SERVER_CDM_SCHEMA"),
cohortTableNames = cohortTableNames,
tempEmulationSchema = NULL
)
}

# Keyring helpers --------------
# Set the keyring name & password for testing
Expand Down

0 comments on commit c2c584f

Please sign in to comment.