From b2835abac6747b783f8c405ac5a5fde4c7ded03b Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Thu, 30 Apr 2026 02:34:44 +0200 Subject: [PATCH] ci: fix branch coverage for *-installed tests The branch coverage setting is specified in `pyproject.toml`. The out-of-tree `*-installed` tests do not have access to this config and therefore lack the branch coverage setting. So copy the `pyproject.toml` to the out-of-tree location as well. Fixes: a65d62efdc95 ("test: set branch code coverage in pyproject.toml") --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 72712747f..c1def0cfd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -126,7 +126,7 @@ jobs: - name: Run unit and integration tests run: > WORKDIR=$(mktemp -d -t apport.XXXXXXXXXX) - && cp -r tests "$WORKDIR" + && cp -r tests pyproject.toml "$WORKDIR" && cd "$WORKDIR" && python3 -m pytest -v -ra --cov=$(pwd) --cov-report=xml --durations=0 tests/unit/ tests/integration/ @@ -250,7 +250,7 @@ jobs: GDK_BACKEND: x11 run: > WORKDIR=$(mktemp -d -t apport.XXXXXXXXXX) - && cp -r tests "$WORKDIR" + && cp -r tests pyproject.toml "$WORKDIR" && cd "$WORKDIR" && sudo xvfb-run python3 -m pytest -v -ra --cov=$(pwd) --cov-report=xml --durations=0 tests/system/