Improve test coverage from 63.6% to 73.4% and fix test infrastructure (#137)
This commit is contained in:
committed by
GitHub
parent
23f744f296
commit
3f06e7231d
11
.github/workflows/tests.yml
vendored
11
.github/workflows/tests.yml
vendored
@@ -25,16 +25,21 @@ jobs:
|
||||
cache: "pip"
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install -e ".[dev]"
|
||||
run: |
|
||||
pip install poetry
|
||||
poetry install --with dev
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
mkdir -p reports
|
||||
pytest \
|
||||
poetry run pytest \
|
||||
--cov=src \
|
||||
--cov-report=term-missing \
|
||||
--cov-report=xml:reports/coverage.xml \
|
||||
--junitxml=reports/junit.xml
|
||||
--cov-fail-under=73 \
|
||||
--junitxml=reports/junit.xml \
|
||||
-p no:xdist \
|
||||
-m "not ollama and not docker and not selenium and not external_api"
|
||||
|
||||
# Posts a check annotation + PR comment showing pass/fail counts.
|
||||
# Visible in the GitHub mobile app under Checks and in PR conversations.
|
||||
|
||||
Reference in New Issue
Block a user