diff --git a/.github/workflows/python-integration.yml b/.github/workflows/python-integration.yml index e5a52acc..81afa625 100644 --- a/.github/workflows/python-integration.yml +++ b/.github/workflows/python-integration.yml @@ -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 }}