From a14bcf1a2145422aca55073b1853b37f79c9f91e Mon Sep 17 00:00:00 2001 From: codex Date: Thu, 25 Jun 2026 08:26:43 +0000 Subject: [PATCH] ci: report integration coverage --- .gitea/workflows/test.yml | 8 +++++++- .gitea/workflows/update-badges.yml | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index cd563f5..f93f9e1 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -68,5 +68,11 @@ jobs: echo "docker not on PATH — integration tests will skip" fi + - name: Install dev requirements + run: python3 -m pip install -r requirements-dev.txt + - 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 diff --git a/.gitea/workflows/update-badges.yml b/.gitea/workflows/update-badges.yml index 8ef744b..ace7616 100644 --- a/.gitea/workflows/update-badges.yml +++ b/.gitea/workflows/update-badges.yml @@ -41,10 +41,11 @@ jobs: echo "score=$SCORE" >> $GITHUB_OUTPUT echo "Pylint score: $SCORE" - - name: Run unit tests and extract coverage + - name: Run tests and extract coverage id: coverage run: | 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) echo "total=$TOTAL" >> $GITHUB_OUTPUT echo "Coverage total: $TOTAL"