From 9829e396ef270c207fbec45e918bfe0fbca53260 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Thu, 7 May 2020 10:26:23 -0400 Subject: [PATCH] Get a report from the CI job to compare with codecov --- .circleci/config.yml | 7 +++++-- .github/workflows/ci.yaml | 1 + zkapauthorizer.nix | 1 - 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 72f66bc..e3b50ab 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -145,9 +145,12 @@ jobs: - run: name: "Report Coverage" + shell: "nix-shell -p 'python.withPackages (ps: [ ps.codecov ])'" command: | - nix-shell -p 'python.withPackages (ps: [ ps.codecov ])' --run \ - 'cp ./result-doc/share/doc/*/.coverage ./; coverage combine; codecov --file .coverage' + cp ./result-doc/share/doc/*/.coverage ./ + python -m coverage combine + python -m coverage report + codecov --file .coverage' workflows: version: 2 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b64117d..e60523d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -68,6 +68,7 @@ jobs: - name: "Convert Coverage" run: | + coverage report coverage xml - uses: codecov/codecov-action@v1 diff --git a/zkapauthorizer.nix b/zkapauthorizer.nix index a718487..34261bc 100644 --- a/zkapauthorizer.nix +++ b/zkapauthorizer.nix @@ -61,7 +61,6 @@ buildPythonPackage rec { python -m coverage html mkdir -p "$doc/share/doc/${name}" cp -vr .coverage htmlcov "$doc/share/doc/${name}" - python -m coverage report '' else ""; } -- GitLab