Skip to content

Commit

Permalink
Modify requirements-test.txt to use psycopg 2.9.9 on MacOS Python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
rhatgadkar-goog committed Jan 7, 2025
1 parent 805ec26 commit 3b94a7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,8 @@ jobs:
pull-requests: write
strategy:
matrix:
# psycopg 2.9.10 isn't supported on Python 3.9 for macos-14. See
# https://github.com/psycopg/psycopg2/issues/1737. But it is supported
# on macos-12. When Python 3.9 reaches end-of-life, we should change
# this back to only run the Mac tests on macos-latest.
os: [windows-latest, ubuntu-latest]
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: ["3.9", "3.13"]
include:
- os: macos-12
python-version: "3.9"
- os: macos-latest
python-version: "3.13"
fail-fast: false
steps:
- name: Checkout code
Expand Down
10 changes: 9 additions & 1 deletion requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
asyncpg==0.30.0
mock==5.1.0
pg8000==1.31.2
psycopg2-binary==2.9.10

# psycopg 2.9.10 isn't supported on Python 3.9 for macos-latest GitHub runner.
# It is supported for macos-12 runner:
# https://github.com/psycopg/psycopg2/issues/1737. But macos-12 runner is
# deprecated: https://github.com/actions/runner-images/issues/10721. So we
# install psycopg 2.9.9 on Python 3.9 for macos-latest runner.
psycopg2-binary==2.9.9; python_version == "3.9" and sys_platform == "darwin"
psycopg2-binary==2.9.10; python_version > "3.9"

pytest==8.3.4
pytest-asyncio==0.24.0
pytest-cov==6.0.0
Expand Down

0 comments on commit 3b94a7e

Please sign in to comment.