From bd97504354b3f9e62c0fc5606ba1c779a88704f3 Mon Sep 17 00:00:00 2001 From: Beto Dealmeida Date: Tue, 24 Oct 2023 22:12:48 -0400 Subject: [PATCH] Different strategy --- .github/workflows/python-integration.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 }}