From 881707af8f539b4de556e3eb4101c87e1a731701 Mon Sep 17 00:00:00 2001 From: Daniel Bast <2790401+dbast@users.noreply.github.com> Date: Thu, 2 Feb 2023 17:38:23 +0100 Subject: [PATCH 1/2] Re-enable coverage reporting --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 53ab3680..86cbe29f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -118,9 +118,11 @@ jobs: source $CONDA_ROOT/etc/profile.d/conda.sh conda info -a mv conda-bld $CONDA_ROOT/conda-bld - conda create -n cptest local::conda-pack conda-forge::pytest python=${{ matrix.pyver }} ${{ matrix.squashfs_deps }} + conda create -n cptest local::conda-pack conda-forge::pytest conda-forge::pytest-cov python=${{ matrix.pyver }} ${{ matrix.squashfs_deps }} conda activate cptest - pytest -v -ss conda_pack/tests + pytest -v -ss --cov=conda_pack --cov-branch conda_pack/tests + coverage json + - uses: codecov/codecov-action@v3 upload: needs: tests runs-on: ubuntu-latest From 263cea2337324b363230f1063f45bb5cfca738fd Mon Sep 17 00:00:00 2001 From: Daniel Bast <2790401+dbast@users.noreply.github.com> Date: Thu, 2 Feb 2023 18:01:39 +0100 Subject: [PATCH 2/2] Simplify --- .github/workflows/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86cbe29f..17e3a184 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -120,8 +120,7 @@ jobs: mv conda-bld $CONDA_ROOT/conda-bld conda create -n cptest local::conda-pack conda-forge::pytest conda-forge::pytest-cov python=${{ matrix.pyver }} ${{ matrix.squashfs_deps }} conda activate cptest - pytest -v -ss --cov=conda_pack --cov-branch conda_pack/tests - coverage json + pytest -v -ss --cov=conda_pack --cov-branch --cov-report=xml conda_pack/tests - uses: codecov/codecov-action@v3 upload: needs: tests