fix(ci): add pytest-cov to resolve coverage flag error
Some checks failed
DSPy RAG Evaluation / Layer 1 - Unit Tests (push) Failing after 10m35s
DSPy RAG Evaluation / Layer 3 - Integration Tests (push) Has been skipped
DSPy RAG Evaluation / Layer 2 - DSPy Module Tests (push) Has been skipped
DSPy RAG Evaluation / Layer 4 - Comprehensive Evaluation (push) Has been skipped
DSPy RAG Evaluation / Quality Gate (push) Failing after 1s

pyproject.toml has --cov flags in addopts which require pytest-cov.
Added pytest-cov to all jobs that run pytest.
This commit is contained in:
kempersc 2026-01-13 13:13:56 +01:00
parent 38db05656a
commit 44061eb736

View file

@ -68,7 +68,7 @@ jobs:
source ${{ env.VENV_PATH }}/bin/activate
pip install --upgrade pip
pip install -e ".[dev]"
pip install rapidfuzz
pip install rapidfuzz pytest-cov
- name: Run Layer 1 unit tests
run: |
@ -110,7 +110,7 @@ jobs:
source ${{ env.VENV_PATH }}/bin/activate
pip install --upgrade pip
pip install -e ".[dev]"
pip install dspy-ai httpx rapidfuzz litellm
pip install dspy-ai httpx rapidfuzz litellm pytest-cov
- name: Run Layer 2 DSPy tests
env:
@ -151,7 +151,7 @@ jobs:
source ${{ env.VENV_PATH }}/bin/activate
pip install --upgrade pip
pip install -e ".[dev]"
pip install httpx pytest-asyncio
pip install httpx pytest-asyncio pytest-cov
- name: Setup SSH for tunnel
run: |
@ -222,7 +222,7 @@ jobs:
source ${{ env.VENV_PATH }}/bin/activate
pip install --upgrade pip
pip install -e ".[dev]"
pip install dspy-ai httpx rapidfuzz pandas pytest-json-report litellm
pip install dspy-ai httpx rapidfuzz pandas pytest-json-report litellm pytest-cov
- name: Setup SSH for tunnel
run: |