Skip to content

Commit 3dbd828

Browse files
mik-lajCopilot
andcommitted
ci: fix pytest-min-deps job based on review feedback
- Split dependency install into two steps: project with --resolution=lowest-direct, test tools installed separately to avoid applying lowest-direct to pytest/aioresponses/etc. - Add --no-cov to pytest invocation to override pyproject.toml addopts = "--cov" since this job doesn't collect coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d2a5f86 commit 3dbd828

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,12 @@ jobs:
6262
python-version: ${{ env.DEFAULT_PYTHON }}
6363
- name: 🏗 Install uv
6464
run: pipx install uv
65-
- name: 🏗 Install dependencies (minimum versions)
66-
run: >
67-
uv pip install --system --resolution=lowest-direct
68-
-e ".[cli]"
69-
aioresponses pytest pytest-asyncio pytest-cov covdefaults syrupy
65+
- name: 🏗 Install package (minimum dependency versions)
66+
run: uv pip install --system --resolution=lowest-direct -e ".[cli]"
67+
- name: 🏗 Install test dependencies
68+
run: uv pip install --system aioresponses pytest pytest-asyncio syrupy
7069
- name: 🚀 Run pytest
71-
run: pytest tests
70+
run: pytest tests --no-cov
7271

7372
coverage:
7473
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)