Omit ui from coverage tests

This commit is contained in:
ChristianZaccaria 2025-07-09 16:43:31 +01:00
parent 901cfcd647
commit 83f3a48539
4 changed files with 6 additions and 28 deletions

View file

@ -48,16 +48,3 @@ jobs:
pytest-report-${{ matrix.python }}.xml
htmlcov-${{ matrix.python }}/
retention-days: 7
- name: Check coverage
run: |
coverage=$(uv run --python ${{ matrix.python }} --group unit coverage report -m | tail -1 | tail -c 4 | head -c 2)
echo "Total coverage: ${coverage}%"
# Check if coverage is below the threshold
if (( ${coverage} < 40 )); then
echo "Coverage failed at ${coverage}%, expected at least 40%"
exit 1
else
echo "Coverage check passed with ${coverage}%"
fi