File tree Expand file tree Collapse file tree 2 files changed +10
-46
lines changed
Expand file tree Collapse file tree 2 files changed +10
-46
lines changed Original file line number Diff line number Diff line change @@ -265,51 +265,12 @@ jobs:
265265workflows :
266266 main_pr :
267267 jobs :
268- - doc_tests
269- - style_and_cicd_tests :
270- matrix :
271- parameters :
272- python_version :
273- - " 3.9"
274- - " 3.10"
275- - " 3.11"
276- - " 3.12"
277- - " 3.13"
278- - cicd_tests_windows
279- - engine_tests_docker :
280- name : engine_<< matrix.engine >>
281- matrix :
282- parameters :
283- engine :
284- - duckdb
285- - postgres
286- - mysql
287- - mssql
288- - trino
289- - spark
290- - clickhouse
291- - risingwave
292268 - engine_tests_cloud :
293269 name : cloud_engine_<< matrix.engine >>
294270 context :
295271 - sqlmesh_cloud_database_integration
296- requires :
297- - engine_tests_docker
298272 matrix :
299273 parameters :
300274 engine :
301275 - snowflake
302- - databricks
303- - redshift
304- - bigquery
305- - clickhouse-cloud
306- - athena
307- - gcp_postgres
308- filters :
309- branches :
310- only :
311- - main
312- - ui_style
313- - ui_test
314- - vscode_test
315- - migration_test
276+ - gcp-postgres
Original file line number Diff line number Diff line change @@ -110,24 +110,27 @@ clickhouse-cloud_init() {
110110}
111111
112112# GCP Postgres
113- gcp_postgres_init () {
113+ gcp-postgres_init () {
114114 # Download and start Cloud SQL Proxy
115115 curl -fsSL -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.18.0/cloud-sql-proxy.linux.amd64
116116 chmod +x cloud-sql-proxy
117117 echo $GCP_POSTGRES_KEYFILE_JSON > /tmp/keyfile.json
118118 ./cloud-sql-proxy --credentials-file /tmp/keyfile.json $GCP_POSTGRES_INSTANCE_CONNECTION_STRING &
119+
120+ # Wait for proxy to start
121+ sleep 5
119122}
120123
121- gcp_postgres_exec () {
124+ gcp-postgres_exec () {
122125 PGPASSWORD=$GCP_POSTGRES_PASSWORD psql -h 127.0.0.1 -U $GCP_POSTGRES_USER -c " $1 " postgres
123126}
124127
125- gcp_postgres_up () {
126- gcp_postgres_exec " create database $1 "
128+ gcp-postgres_up () {
129+ gcp-postgres_exec " create database $1 "
127130}
128131
129- gcp_postgres_down () {
130- gcp_postgres_exec " drop database $1 "
132+ gcp-postgres_down () {
133+ gcp-postgres_exec " drop database $1 "
131134}
132135
133136
You can’t perform that action at this time.
0 commit comments