Skip to content

Commit 517a123

Browse files
committed
Wait for postgres server before starting unit tests
1 parent 982d779 commit 517a123

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
run: |
4040
python -m pip install --upgrade pip
4141
python -m pip install -r requirements.txt
42+
until PGSERVICEFILE=$PWD/qwc-docker/pg_service_local.conf psql service=qwc_configdb -c "select 1" > /dev/null 2>&1; do echo "Waiting for postgres server..."; sleep 1; done
4243
PGSERVICEFILE=$PWD/qwc-docker/pg_service_local.conf PYTHONPATH=$PWD/src python3 test.py
4344
4445
- name: Validate schema

0 commit comments

Comments
 (0)