Skip to content

Commit 3dc7e66

Browse files
WilliamBergaminClaude
andauthored
ci: use psycopg 3 for the PostgreSQL database tests (#1971)
Co-authored-by: Claude <svc-devxp-claude@slack-corp.com>
1 parent 77d0a1a commit 3dc7e66

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/ci-build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ jobs:
152152
pip install -r requirements/databases.txt
153153
- name: Run sync tests (PostgreSQL)
154154
env:
155-
TEST_DATABASE_URL: postgresql://test_user:password@localhost/test
155+
TEST_DATABASE_URL: postgresql+psycopg://test_user:password@localhost/test
156156
run: |
157157
PYTHONPATH=$PWD:$PYTHONPATH pytest -s tests/slack_sdk/oauth/installation_store/test_sqlalchemy.py
158158
PYTHONPATH=$PWD:$PYTHONPATH pytest -s tests/slack_sdk/oauth/state_store/test_sqlalchemy.py

‎requirements/databases.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# pip install -r requirements/databases.txt
22
# Database drivers for CI testing.
33

4-
# psycopg2-binary
4+
# psycopg
55
# Note: postgreSQL driver (sync).
6-
psycopg2-binary>=2.9.12,<3
6+
psycopg[binary]>=3.3.6,<4
77

88
# asyncpg
99
# Note: postgreSQL driver (async).

0 commit comments

Comments
 (0)