Skip to content

Commit

Permalink
feat(ci): implement psycopg client install for macos and `windows…
Browse files Browse the repository at this point in the history
…` runners (#3932)

* fix: compat test update

* fix: update compat test runners

* feat: correctly install windows client
  • Loading branch information
cofin authored Jan 8, 2025
1 parent 9cc5396 commit 5c87273
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ jobs:
os: ["macos-latest", "windows-latest"]
uses: ./.github/workflows/test.yml
with:
python-version: "3.12"
python-version: "3.13"
os: ${{ matrix.os }}
timeout: 30

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,21 @@ jobs:
with:
python-version: ${{ inputs.python-version }}

# Linux Source
- name: Install Build Dependencies
run: sudo apt-get install build-essential libpq-dev python3-dev -y
if: startsWith(inputs.os, 'ubuntu')

# MacOS Source
- name: Install Build Dependencies
run: brew install libpq && brew link --force libpq
if: startsWith(inputs.os, 'macos')

# Windows Source
- name: Install Build Dependencies
uses: ikalnytskyi/action-setup-postgres@v7
if: startsWith(inputs.os, 'windows')

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ dev = [
"aiosqlite",
"asyncpg>=0.29.0",
"psycopg[pool,binary]>=3.1.10,<3.2; python_version < \"3.13\"",
"psycopg[pool,c]; python_version >= \"3.13\"",
"psycopg[pool,c]; python_version >= \"3.13\" and sys_platform == 'linux'",
"psycopg[pool]; python_version >= \"3.13\" and sys_platform != 'linux'",
"psycopg2-binary",
"psutil>=5.9.8",
"hypercorn>=0.16.0",
Expand Down
21 changes: 13 additions & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5c87273

Please sign in to comment.