Skip to content

Commit 938c68f

Browse files
committed
fix(ci): run pytest directly instead of via uv run
uv pip install --system installs packages into the system Python, but uv run creates a separate project venv where pytest-cov is not available. Fix by running pytest/playwright directly from the system Python and consolidating deps into a single .[all,dev] install.
1 parent 0ba6475 commit 938c68f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,16 @@ jobs:
5555

5656
- name: Install dependencies
5757
run: |
58-
uv pip install --system -e ".[all]"
59-
uv pip install --system pytest pytest-cov pytest-asyncio
58+
uv pip install --system -e ".[all,dev]"
6059
6160
- name: Install Playwright browsers
6261
run: |
63-
uv run playwright install chromium
62+
playwright install chromium
6463
continue-on-error: true
6564

6665
- name: Run tests with coverage
6766
run: |
68-
uv run pytest tests/ -v --tb=short --cov=src/openbrowser --cov-report=xml --cov-report=term-missing
67+
pytest tests/ -v --tb=short --cov=src/openbrowser --cov-report=xml --cov-report=term-missing
6968
env:
7069
PYTHONPATH: ${{ github.workspace }}
7170

0 commit comments

Comments
 (0)