File tree Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Expand file tree Collapse file tree 4 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -42,11 +42,29 @@ jobs:
42
42
- name : Install package
43
43
run : " poetry install"
44
44
45
+ # BigQuery start
46
+ - id : ' auth'
47
+ uses : ' google-github-actions/auth@v1'
48
+ with :
49
+ credentials_json : ' ${{ secrets.GOOGLE_CREDENTIALS }}'
50
+
51
+ - name : ' Set up BigQuery Cloud SDK'
52
+ uses : ' google-github-actions/setup-gcloud@v1'
53
+
54
+ # - name: 'Use gcloud CLI'
55
+ # run: "gcloud config configurations list"
56
+
57
+ - name : " Install BigQuery for Python"
58
+ run : poetry add google-cloud-bigquery
59
+
60
+ # BigQuery end
61
+
45
62
- name : Run unit tests
46
63
env :
47
64
DATADIFF_SNOWFLAKE_URI : ' ${{ secrets.DATADIFF_SNOWFLAKE_URI }}'
48
65
DATADIFF_PRESTO_URI : ' ${{ secrets.DATADIFF_PRESTO_URI }}'
49
66
DATADIFF_TRINO_URI : ' ${{ secrets.DATADIFF_TRINO_URI }}'
67
+ DATADIFF_BIGQUERY_URI : ' ${{ secrets.DATADIFF_BIGQUERY_URI }}'
50
68
DATADIFF_CLICKHOUSE_URI : ' clickhouse://clickhouse:Password1@localhost:9000/clickhouse'
51
69
DATADIFF_VERTICA_URI : ' vertica://vertica:Password1@localhost:5433/vertica'
52
70
run : |
Original file line number Diff line number Diff line change @@ -39,12 +39,30 @@ jobs:
39
39
- name : Install package
40
40
run : " poetry install"
41
41
42
+ # BigQuery start
43
+ - id : ' auth'
44
+ uses : ' google-github-actions/auth@v1'
45
+ with :
46
+ credentials_json : ' ${{ secrets.GOOGLE_CREDENTIALS }}'
47
+
48
+ - name : ' Set up BigQuery Cloud SDK'
49
+ uses : ' google-github-actions/setup-gcloud@v1'
50
+
51
+ # - name: 'Use gcloud CLI'
52
+ # run: "gcloud config configurations list"
53
+
54
+ - name : " Install BigQuery for Python"
55
+ run : poetry add google-cloud-bigquery
56
+
57
+ # BigQuery end
58
+
42
59
- name : Run unit tests
43
60
env :
44
61
DATADIFF_SNOWFLAKE_URI : ' ${{ secrets.DATADIFF_SNOWFLAKE_URI }}'
45
62
DATADIFF_PRESTO_URI : ' ${{ secrets.DATADIFF_PRESTO_URI }}'
46
63
DATADIFF_CLICKHOUSE_URI : ' clickhouse://clickhouse:Password1@localhost:9000/clickhouse'
47
64
DATADIFF_VERTICA_URI : ' vertica://vertica:Password1@localhost:5433/vertica'
65
+ DATADIFF_BIGQUERY_URI : ' ${{ secrets.DATADIFF_BIGQUERY_URI }}'
48
66
run : |
49
67
chmod +x tests/waiting_for_stack_up.sh
50
68
./tests/waiting_for_stack_up.sh && TEST_ACROSS_ALL_DBS=full poetry run unittest-parallel -j 16
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ presto-python-client = "*"
51
51
clickhouse-driver = " *"
52
52
vertica-python = " *"
53
53
duckdb = " ^0.6.0"
54
+ # google-cloud-bigquery = "*"
54
55
# databricks-sql-connector = "*"
55
56
56
57
[tool .poetry .extras ]
Original file line number Diff line number Diff line change 24
24
TEST_POSTGRESQL_CONN_STRING : str = "postgresql://postgres:Password1@localhost/postgres"
25
25
TEST_SNOWFLAKE_CONN_STRING : str = os .environ .get ("DATADIFF_SNOWFLAKE_URI" ) or None
26
26
TEST_PRESTO_CONN_STRING : str = os .environ .get ("DATADIFF_PRESTO_URI" ) or None
27
- TEST_BIGQUERY_CONN_STRING : str = None
27
+ TEST_BIGQUERY_CONN_STRING : str = os . environ . get ( "DATADIFF_BIGQUERY_URI" ) or None
28
28
TEST_REDSHIFT_CONN_STRING : str = None
29
29
TEST_ORACLE_CONN_STRING : str = None
30
30
TEST_DATABRICKS_CONN_STRING : str = os .environ .get ("DATADIFF_DATABRICKS_URI" )
@@ -97,7 +97,7 @@ def _print_used_dbs():
97
97
used = {k .__name__ for k , v in CONN_STRINGS .items () if v is not None }
98
98
unused = {k .__name__ for k , v in CONN_STRINGS .items () if v is None }
99
99
100
- logging . info (f"Testing databases: { ', ' .join (used )} " )
100
+ print (f"Testing databases: { ', ' .join (used )} " )
101
101
if unused :
102
102
logging .info (f"Connection not configured; skipping tests for: { ', ' .join (unused )} " )
103
103
if TEST_ACROSS_ALL_DBS :
You can’t perform that action at this time.
0 commit comments