diff --git a/.github/workflows/python-integration.yml b/.github/workflows/python-integration.yml index e5a52acc..9575ca5e 100644 --- a/.github/workflows/python-integration.yml +++ b/.github/workflows/python-integration.yml @@ -40,13 +40,15 @@ jobs: - name: Start the Postgres service run: | docker-compose -f postgres/docker-compose.yml up --build -d - - name: Check if Postgres is ready + - name: Install PostgreSQL tools run: | - docker run --network container:postgres_postgres_1 postgres_postgres pg_isready \ - -h postgres \ - -p 5432 \ - -U shillelagh \ - --timeout=30 + sudo apt-get update + sudo apt-get install -y postgresql-client + - name: Wait for Postgres to become available + run: | + docker ps + sleep 300 + #until pg_isready -h localhost -p 12345 -U shillelagh -d shillelagh; do sleep 10; done - name: Test with pytest env: SHILLELAGH_ADAPTER_KWARGS: ${{ secrets.SHILLELAGH_ADAPTER_KWARGS }} diff --git a/postgres/docker-compose.yml b/postgres/docker-compose.yml index 89eeb956..4ab5e677 100644 --- a/postgres/docker-compose.yml +++ b/postgres/docker-compose.yml @@ -13,7 +13,7 @@ services: - ./entrypoint.sh:/usr/local/bin/custom_entrypoint.sh - ..:/src ports: - - "12345:5432" + - "5432:5432" entrypoint: /usr/local/bin/custom_entrypoint.sh volumes: diff --git a/tests/adapters/api/gsheets/integration_test.py b/tests/adapters/api/gsheets/integration_test.py index 14f2478f..ef4992c5 100644 --- a/tests/adapters/api/gsheets/integration_test.py +++ b/tests/adapters/api/gsheets/integration_test.py @@ -768,7 +768,7 @@ def test_public_sheet_multicorn() -> None: user="shillelagh", password="shillelagh123", host="localhost", - port=12345, + port=5432, database="shillelagh", ) cursor = connection.cursor()