v1.4 release candidate (#465) #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [main, master, test] | |
pull_request: | |
branches: [main, master] | |
name: redshift-test | |
jobs: | |
Postgres-test: | |
# if: github.repository == 'darwin-eu/CDMConnector' | |
runs-on: ubuntu-latest | |
container: | |
image: executionengine.azurecr.io/darwin-base:v0.3 | |
env: | |
CDM5_REDSHIFT_USER: ${{ secrets.CDM5_REDSHIFT_USER }} | |
CDM5_REDSHIFT_PORT: ${{ secrets.CDM5_REDSHIFT_PORT }} | |
CDM5_REDSHIFT_PASSWORD: ${{ secrets.CDM5_REDSHIFT_PASSWORD }} | |
CDM5_REDSHIFT_SERVER: ${{ secrets.CDM5_REDSHIFT_SERVER }} | |
CDM5_REDSHIFT_HOST: ${{ secrets.CDM5_REDSHIFT_HOST }} | |
CDM5_REDSHIFT_DBNAME: ${{ secrets.CDM5_REDSHIFT_DBNAME }} | |
CDM5_REDSHIFT_CDM_SCHEMA: ${{ secrets.CDM5_REDSHIFT_CDM_SCHEMA }} | |
CDM5_REDSHIFT_OHDSI_SCHEMA: ${{ secrets.CDM5_REDSHIFT_OHDSI_SCHEMA }} | |
CDM5_REDSHIFT_SCRATCH_SCHEMA: ${{ secrets.CDM5_REDSHIFT_SCRATCH_SCHEMA }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
TESTTHAT_CPUS : 1 | |
name: Redshift test (RPostgres driver) | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install R packages | |
run: | | |
print(getwd()) | |
print(list.files()) | |
install.packages("devtools", repos = "https://cloud.r-project.org/") | |
install.packages("omopgenerics", repos = "https://cloud.r-project.org/") | |
install.packages("palmerpenguins", repos = "https://cloud.r-project.org/") | |
install.packages("tictoc", repos = "https://cloud.r-project.org/") | |
shell: Rscript {0} | |
- name: Run tests on Redshift with RPostgres driver | |
run: R -e 'devtools::install(); withr::with_envvar(new = c("CI_TEST_DB" = "postgres"), testthat::test_local())' | |