tAttempt at code coverage in CI. - obelisk - Electrum server using libbitcoin as its backend HTML git clone https://git.parazyd.org/obelisk DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit d3937586bf170334688467da0ed23726acaa0db7 DIR parent 6ab9415b33bf5a39fe4461cdbadb4dffbd8be33a HTML Author: parazyd <parazyd@dyne.org> Date: Fri, 16 Apr 2021 11:20:52 +0200 Attempt at code coverage in CI. Diffstat: M .github/workflows/py.yaml | 13 +++++++++++-- M .gitignore | 1 + M Makefile | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) --- DIR diff --git a/.github/workflows/py.yaml b/.github/workflows/py.yaml t@@ -19,7 +19,16 @@ jobs: run: | python -m pip install --upgrade pip pip install pyzmq + pip install coverage pip install -e . - - name: Run tests + - name: Run tests and make coverage report run: | - python tests + make coverage + - name: Upload coverage report + uses: codecov/codecov-action@v1 + with: + files: ./coverage.xml + flags: unittests + env_vars: OS,PYTHON + fail_ci_if_error: true + verbose: true DIR diff --git a/.gitignore b/.gitignore t@@ -1,3 +1,4 @@ *.pyc .coverage +coverage.xml htmlcov DIR diff --git a/Makefile b/Makefile t@@ -14,3 +14,4 @@ coverage: coverage run tests coverage report coverage html + coverage xml