Skip to content

Commit 7e12be8

Browse files
committed
working on wait for postgres
1 parent 3c211c1 commit 7e12be8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/testing.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,19 @@ jobs:
3131
uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python-version }}
34+
# - name: Wait for PostgreSQL to become ready
35+
# run: |
36+
# for i in {1..30}; do
37+
# pg_isready -h postgresdbTest -p 5432 && echo Success && exit 0
38+
# echo -n .
39+
# sleep 2
40+
# done
41+
# echo Failed waiting for Postgres && exit 1
3442
- name: Wait for PostgreSQL to become ready
35-
run: |
36-
for i in {1..10}; do
37-
pg_isready -h postgresdbTest -p 5432 && echo Success && exit 0
38-
echo -n .
39-
sleep 1
40-
done
41-
echo Failed waiting for Postgres && exit 1
43+
uses: SuperTanker/wait-for-postgres-action@v1.0.0
44+
with:
45+
host: postgresdbTest
46+
port: 5432
4247
- name: Install dependencies
4348
run: |
4449
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)