Skip to content

Commit

Permalink
actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ablack3 committed Dec 9, 2023
1 parent 3a3ff0e commit 552e3b3
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/duckdb-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
image: executionengine.azurecr.io/darwin-base:v0.1
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
TESTTHAT_CPUS : 1

name: duckdb-test

Expand All @@ -23,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Run tests on postgres with RPostgres driver
- name: Run tests on duckdb
run: R -e 'withr::with_envvar(new = c("CI_TEST_DB" = "duckdb", "TESTTHAT_CPUS" = 1), testthat::test_local())'


File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
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 : 2

name: Redshift test (RPostgres driver)

Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/sqlserver-odbc-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]

name: sqlserver-odbc-test

jobs:
Postgres-test:
if: github.repository == 'darwin-eu/CDMConnector'
runs-on: ubuntu-latest
container:
image: executionengine.azurecr.io/darwin-base:v0.1
env:
CDM5_SQL_SERVER_USER: ${{ secrets.CDM5_SQL_SERVER_USER }}
CDM5_SQL_SERVER_PORT: ${{ secrets.CDM5_SQL_SERVER_PORT }}
CDM5_SQL_SERVER_PASSWORD: ${{ secrets.CDM5_SQL_SERVER_PASSWORD }}
CDM5_SQL_SERVER_SERVER: ${{ secrets.CDM5_SQL_SERVER_SERVER }}
CDM5_SQL_SERVER_HOST: ${{ secrets.CDM5_SQL_SERVER_HOST }}
CDM5_SQL_SERVER_DBNAME: ${{ secrets.CDM5_SQL_SERVER_DBNAME }}
CDM5_SQL_SERVER_CDM_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_CDM_SCHEMA }}
CDM5_SQL_SERVER_OHDSI_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_OHDSI_SCHEMA }}
CDM5_SQL_SERVER_SCRATCH_SCHEMA: ${{ secrets.CDM5_SQL_SERVER_SCRATCH_SCHEMA }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
SQL_SERVER_DRIVER: "ODBC Driver 18 for SQL Server"
TESTTHAT_CPUS : 2

name: SQL Server test (ODBC driver)

strategy:
fail-fast: true

steps:
- uses: actions/checkout@v2

- name: Run tests on SQL Server with odbc driver
run: R -e 'withr::with_envvar(new = c("CI_TEST_DB" = "sqlserver"), testthat::test_local())'


0 comments on commit 552e3b3

Please sign in to comment.