Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit cb7ed82

Browse files
committed
CI: Added testing for Redshift
1 parent 6c610e5 commit cb7ed82

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
DATADIFF_BIGQUERY_URI: '${{ secrets.DATADIFF_BIGQUERY_URI }}'
6868
DATADIFF_CLICKHOUSE_URI: 'clickhouse://clickhouse:Password1@localhost:9000/clickhouse'
6969
DATADIFF_VERTICA_URI: 'vertica://vertica:Password1@localhost:5433/vertica'
70+
DATADIFF_REDSHIFT_URI: '${{ secrets.DATADIFF_REDSHIFT_URI }}'
7071
run: |
7172
chmod +x tests/waiting_for_stack_up.sh
7273
./tests/waiting_for_stack_up.sh && TEST_ACROSS_ALL_DBS=0 poetry run unittest-parallel -j 16

.github/workflows/ci_full.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ on:
88
# - '!dev/**'
99
pull_request:
1010
branches: [ master ]
11-
1211
workflow_dispatch:
1312

13+
permissions:
14+
id-token: write # This is required for requesting the JWT
15+
contents: read # This is required for actions/checkout
16+
1417
jobs:
1518
unit_tests:
1619
strategy:
@@ -48,9 +51,6 @@ jobs:
4851
- name: 'Set up BigQuery Cloud SDK'
4952
uses: 'google-github-actions/setup-gcloud@v1'
5053

51-
# - name: 'Use gcloud CLI'
52-
# run: "gcloud config configurations list"
53-
5454
- name: "Install BigQuery for Python"
5555
run: poetry add google-cloud-bigquery
5656

@@ -63,6 +63,7 @@ jobs:
6363
DATADIFF_CLICKHOUSE_URI: 'clickhouse://clickhouse:Password1@localhost:9000/clickhouse'
6464
DATADIFF_VERTICA_URI: 'vertica://vertica:Password1@localhost:5433/vertica'
6565
DATADIFF_BIGQUERY_URI: '${{ secrets.DATADIFF_BIGQUERY_URI }}'
66+
DATADIFF_REDSHIFT_URI: '${{ secrets.DATADIFF_REDSHIFT_URI }}'
6667
run: |
6768
chmod +x tests/waiting_for_stack_up.sh
6869
./tests/waiting_for_stack_up.sh && poetry run unittest-parallel -j 16

tests/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
TEST_SNOWFLAKE_CONN_STRING: str = os.environ.get("DATADIFF_SNOWFLAKE_URI") or None
2626
TEST_PRESTO_CONN_STRING: str = os.environ.get("DATADIFF_PRESTO_URI") or None
2727
TEST_BIGQUERY_CONN_STRING: str = os.environ.get("DATADIFF_BIGQUERY_URI") or None
28-
TEST_REDSHIFT_CONN_STRING: str = None
28+
TEST_REDSHIFT_CONN_STRING: str = os.environ.get("DATADIFF_REDSHIFT_URI") or None
2929
TEST_ORACLE_CONN_STRING: str = None
3030
TEST_DATABRICKS_CONN_STRING: str = os.environ.get("DATADIFF_DATABRICKS_URI")
3131
TEST_TRINO_CONN_STRING: str = os.environ.get("DATADIFF_TRINO_URI") or None

0 commit comments

Comments
 (0)