ci: report integration coverage

This commit is contained in:
2026-06-25 08:26:43 +00:00
parent 75a50987d3
commit c45423f7f3
2 changed files with 9 additions and 2 deletions
+7 -1
View File
@@ -68,5 +68,11 @@ jobs:
echo "docker not on PATH — integration tests will skip" echo "docker not on PATH — integration tests will skip"
fi fi
- name: Install dev requirements
run: python3 -m pip install -r requirements-dev.txt
- name: Run integration tests - name: Run integration tests
run: python3 -m unittest discover -t . -s tests/integration -v run: python3 -m coverage run -m unittest discover -t . -s tests/integration -v
- name: Report integration coverage
run: python3 -m coverage report -m
+2 -1
View File
@@ -41,10 +41,11 @@ jobs:
echo "score=$SCORE" >> $GITHUB_OUTPUT echo "score=$SCORE" >> $GITHUB_OUTPUT
echo "Pylint score: $SCORE" echo "Pylint score: $SCORE"
- name: Run unit tests and extract coverage - name: Run tests and extract coverage
id: coverage id: coverage
run: | run: |
python -m coverage run -m unittest discover -t . -s tests/unit -v python -m coverage run -m unittest discover -t . -s tests/unit -v
python -m coverage run -a -m unittest discover -t . -s tests/integration -v
TOTAL=$(python -m coverage report --format=total) TOTAL=$(python -m coverage report --format=total)
echo "total=$TOTAL" >> $GITHUB_OUTPUT echo "total=$TOTAL" >> $GITHUB_OUTPUT
echo "Coverage total: $TOTAL" echo "Coverage total: $TOTAL"