From 4234a6a1abc84876c133769de87d28c3f149ec9e Mon Sep 17 00:00:00 2001 From: paugier Date: Sun, 25 Feb 2024 00:11:02 +0100 Subject: [PATCH] Fix coverage report --- .github/workflows/ci-linux.yml | 3 ++- .github/workflows/ci-pixi.yml | 2 +- noxfile.py | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index afddccd9..e0fc7d54 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -19,7 +19,7 @@ jobs: libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 \ libxcb-xinerama0 libxcb-xfixes0 xdotool - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 @@ -42,3 +42,4 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false # optional (default = false) verbose: true # optional (default = false) + files: .coverage/coverage.xml diff --git a/.github/workflows/ci-pixi.yml b/.github/workflows/ci-pixi.yml index 121028e5..c5f0cc21 100644 --- a/.github/workflows/ci-pixi.yml +++ b/.github/workflows/ci-pixi.yml @@ -16,7 +16,7 @@ jobs: run: shell: bash -l {0} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: prefix-dev/setup-pixi@v0.4.1 with: pixi-version: v0.11.1 diff --git a/noxfile.py b/noxfile.py index 26152d76..1fcde3d0 100644 --- a/noxfile.py +++ b/noxfile.py @@ -75,6 +75,8 @@ def test(session): *session.posargs, env=TEST_ENV_VARS, ) + if "--cov" in session.posargs: + session.run("coverage", "xml") @no_venv_session(name="test-cov")