diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index e300b08a..8c487349 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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 diff --git a/requirements-test.txt b/requirements-test.txt index 12b94c08..33b1d32f 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -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