diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 790148c19..37f0ad938 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -85,7 +85,7 @@ jobs: - name: Run tests run: poetry run pytest --cache-clear tests - comment-coverage: + coverage: if: github.event.pull_request runs-on: ubuntu-latest steps: @@ -103,6 +103,6 @@ jobs: - name: Install project and its dependencies run: poetry install - name: Build coverage file - run: poetry run pytest --cache-clear --cov=krux tests > pytest-coverage.txt - - name: Comment coverage - uses: coroo/pytest-coverage-commentator@v1.0.2 + run: poetry run pytest --cache-clear --cov --cov-report xml tests + - name: Upload coverage reports to Codecov with GitHub Action + uses: codecov/codecov-action@v2 \ No newline at end of file diff --git a/README.md b/README.md index 56c6130bb..2b0b2e720 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██████ ██ ██ +[![codecov](https://codecov.io/gh/jreesun/krux/branch/main/graph/badge.svg)](https://codecov.io/gh/jreesun/krux) + Krux is an open-source DIY hardware signer for Bitcoin that can sign for multisignature and single-key wallets. It is a low-cost airgapped device built from off-the-shelf parts that communicates with wallet software via QR codes and wipes its memory after every session. ---