Skip to content

Commit 3c211c1

Browse files
committed
adding step for postgres
1 parent 0aa43b1 commit 3c211c1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/testing.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,22 @@ jobs:
2323
strategy:
2424
max-parallel: 10
2525
matrix:
26-
os: [ubuntu-latest, windows-latest]
27-
python-version: ["3.9", "3.10", "3.11", "3.12"]
26+
os: [ubuntu-latest] #, windows-latest]
27+
python-version: ["3.12"] #"3.9", "3.10", "3.11", "3.12"]
2828
steps:
2929
- uses: actions/checkout@v4
3030
- name: Set up Python ${{ matrix.python-version }}
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..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
3442
- name: Install dependencies
3543
run: |
3644
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)