Skip to content

Commit 97f76da

Browse files
fx
1 parent 55f601f commit 97f76da

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ jobs:
5757
with:
5858
python-version: ${{ matrix.python-version }}
5959

60+
- name: Install PostgreSQL Development Tools
61+
if: matrix.os == 'ubuntu-latest'
62+
run: sudo apt-get update && sudo apt-get install -y libpq-dev
63+
64+
- name: Install PostgreSQL
65+
if: matrix.os == 'macos-latest'
66+
run: brew install postgresql
67+
6068
- name: Install Poetry
6169
uses: snok/install-poetry@v1
6270
with:
@@ -79,20 +87,20 @@ jobs:
7987
- name: Install dependencies
8088
run: poetry install --no-interaction --no-root
8189

82-
- name: Run tests (Ubuntu)
90+
- name: Run tests (Linux)
8391
if: matrix.os == 'ubuntu-latest'
8492
run: |
8593
source .venv/bin/activate
8694
pytest tests/
8795
88-
- name: Run tests (macOS)
96+
- name: Run tests (macOS - skip Docker tests)
8997
if: matrix.os == 'macos-latest'
9098
run: |
9199
source .venv/bin/activate
92-
pytest tests/
100+
pytest tests/ -m "not docker_required"
93101
94-
- name: Run tests (Windows)
102+
- name: Run tests (Windows - skip Docker tests)
95103
if: matrix.os == 'windows-latest'
96104
run: |
97105
source .venv/Scripts/activate
98-
pytest tests/
106+
pytest tests/ -m "not docker_required"

0 commit comments

Comments
 (0)