Skip to content

Commit 22e9183

Browse files
committed
working on wait for postgres
1 parent 7e12be8 commit 22e9183

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/testing.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,14 @@ 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
4234
- name: Wait for PostgreSQL to become ready
43-
uses: SuperTanker/wait-for-postgres-action@v1.0.0
44-
with:
45-
host: postgresdbTest
46-
port: 5432
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
4742
- name: Install dependencies
4843
run: |
4944
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)