From 5576c21e6711efb7eca494b0c92e1a7dbdd3966f Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Sat, 21 Aug 2021 15:26:14 -0400 Subject: [PATCH] coverage for integration tests --- .github/workflows/main.yml | 9 +++++++++ tox.ini | 1 + 2 files changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c0c2fc5c4..4dd8f72ac 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -110,6 +110,15 @@ jobs: restore-keys: txo-integration-${{ matrix.test }}- - run: pip install tox - run: tox -e ${{ matrix.test }} + - name: submit coverage report + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COVERALLS_FLAG_NAME: tests-integration-${{ steps.os-name.outputs.lowercase }} + COVERALLS_PARALLEL: true + run: | + pip install coveralls + coveralls --service=github + coverage: #needs: ["tests-unit", "tests-integration"] diff --git a/tox.ini b/tox.ini index 0b8b7ff90..f8dbde108 100644 --- a/tox.ini +++ b/tox.ini @@ -13,3 +13,4 @@ commands = blockchain: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.blockchain {posargs} datanetwork: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.datanetwork {posargs} other: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.other {posargs} + coverage combine tests