Skip to content

Commit

Permalink
Different strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida committed Oct 25, 2023
1 parent efad596 commit bd97504
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/python-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ jobs:
- name: Start the Postgres service
run: |
docker-compose -f postgres/docker-compose.yml up --build -d
- name: Check if Postgres is ready
- name: Wait for Postgres to become available
run: |
docker run --network container:postgres_postgres_1 postgres_postgres pg_isready \
until docker run --network container:postgres_postgres_1 postgres_postgres \
pg_isready \
-h postgres \
-p 5432 \
-U shillelagh \
--timeout=30
--timeout=90
do
sleep 10
done
- name: Test with pytest
env:
SHILLELAGH_ADAPTER_KWARGS: ${{ secrets.SHILLELAGH_ADAPTER_KWARGS }}
Expand Down

0 comments on commit bd97504

Please sign in to comment.