diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index ec479ef4c..91ee9b133 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -152,7 +152,7 @@ jobs: pip install -r requirements/databases.txt - name: Run sync tests (PostgreSQL) env: - TEST_DATABASE_URL: postgresql://test_user:password@localhost/test + TEST_DATABASE_URL: postgresql+psycopg://test_user:password@localhost/test run: | PYTHONPATH=$PWD:$PYTHONPATH pytest -s tests/slack_sdk/oauth/installation_store/test_sqlalchemy.py PYTHONPATH=$PWD:$PYTHONPATH pytest -s tests/slack_sdk/oauth/state_store/test_sqlalchemy.py diff --git a/requirements/databases.txt b/requirements/databases.txt index dc18e6c3b..bdb5c457d 100644 --- a/requirements/databases.txt +++ b/requirements/databases.txt @@ -1,9 +1,9 @@ # pip install -r requirements/databases.txt # Database drivers for CI testing. -# psycopg2-binary +# psycopg # Note: postgreSQL driver (sync). -psycopg2-binary>=2.9.12,<3 +psycopg[binary]>=3.3.6,<4 # asyncpg # Note: postgreSQL driver (async).