Skip to content

Commit c8edf65

Browse files
Modify requirements-test.txt to use psycopg 2.9.9 on MacOS Python 3.9
1 parent 805ec26 commit c8edf65

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,8 @@ jobs:
3737
pull-requests: write
3838
strategy:
3939
matrix:
40-
# psycopg 2.9.10 isn't supported on Python 3.9 for macos-14. See
41-
# https://github.com/psycopg/psycopg2/issues/1737. But it is supported
42-
# on macos-12. When Python 3.9 reaches end-of-life, we should change
43-
# this back to only run the Mac tests on macos-latest.
44-
os: [windows-latest, ubuntu-latest]
40+
os: [macos-latest, windows-latest, ubuntu-latest]
4541
python-version: ["3.9", "3.13"]
46-
include:
47-
- os: macos-12
48-
python-version: "3.9"
49-
- os: macos-latest
50-
python-version: "3.13"
5142
fail-fast: false
5243
steps:
5344
- name: Checkout code

requirements-test.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
asyncpg==0.30.0
22
mock==5.1.0
33
pg8000==1.31.2
4-
psycopg2-binary==2.9.10
4+
5+
# psycopg 2.9.10 isn't supported on Python 3.9 for macos-latest GitHub runner.
6+
# It is supported for macos-12 runner:
7+
# https://github.com/psycopg/psycopg2/issues/1737. But macos-12 runner is
8+
# deprecated: https://github.com/actions/runner-images/issues/10721. So we
9+
# install psycopg 2.9.9 on Python 3.9 for macos-latest runner.
10+
psycopg2-binary==2.9.9; python_version == "3.9" and sys_platform == "darwin"
11+
psycopg2-binary==2.9.10; python_version == "3.9" and sys_platform != "darwin"
12+
psycopg2-binary==2.9.10; python_version > "3.9"
13+
514
pytest==8.3.4
615
pytest-asyncio==0.24.0
716
pytest-cov==6.0.0

0 commit comments

Comments
 (0)