diff --git a/.github/workflows/test-toolkits.yml b/.github/workflows/test-toolkits.yml index ca514166..b308497a 100644 --- a/.github/workflows/test-toolkits.yml +++ b/.github/workflows/test-toolkits.yml @@ -99,7 +99,8 @@ jobs: - name: Test stand-alone toolkits (with secrets) if: | - !github.event.pull_request.head.repo.fork + !github.event.pull_request.head.repo.fork && + github.actor != 'dependabot[bot]' working-directory: toolkits/${{ matrix.toolkit }} env: TEST_POSTGRES_DATABASE_CONNECTION_STRING: ${{ secrets.TEST_POSTGRES_DATABASE_CONNECTION_STRING }} # TODO: dynamically only load the `TEST_${{ matrix.toolkit }}_DATABASE_CONNECTION_STRING secret` diff --git a/pyproject.toml b/pyproject.toml index c6f30f0b..d7e96ef9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ dependencies = [ "typer==0.10.0", "rich==13.9.4", "Jinja2==3.1.6", - "authlib==1.3.0", + "authlib==1.6.5", "arcadepy==1.8.0", "tqdm==4.67.1", "openai==1.82.1", diff --git a/toolkits/postgres/tests/test_postgres.py b/toolkits/postgres/tests/test_postgres.py index 7cb8ec23..b9904664 100644 --- a/toolkits/postgres/tests/test_postgres.py +++ b/toolkits/postgres/tests/test_postgres.py @@ -17,7 +17,7 @@ from sqlalchemy.ext.asyncio import create_async_engine POSTGRES_DATABASE_CONNECTION_STRING = ( environ.get("TEST_POSTGRES_DATABASE_CONNECTION_STRING") - or "postgresql://evan@localhost:5432/postgres" + or "postgresql://postgres@localhost:5432/postgres" ) diff --git a/toolkits/postgres/tests/test_setup.sh b/toolkits/postgres/tests/test_setup.sh new file mode 100755 index 00000000..bac01757 --- /dev/null +++ b/toolkits/postgres/tests/test_setup.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Run PostgreSQL container +docker run -d --name some-postgres-server -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 postgres:latest + +# Wait for PostgreSQL to be ready +echo "Waiting for PostgreSQL to be ready..." +for i in {1..30}; do + if docker exec some-postgres-server pg_isready -U postgres > /dev/null 2>&1; then + echo "PostgreSQL is ready!" + break + fi + echo "Waiting... ($i/30)" + sleep 1 +done