coverage for integration tests

This commit is contained in:
Lex Berezhny 2021-08-21 15:26:14 -04:00
parent e49cfb1d2b
commit 5576c21e67
2 changed files with 10 additions and 0 deletions

View file

@ -110,6 +110,15 @@ jobs:
restore-keys: txo-integration-${{ matrix.test }}- restore-keys: txo-integration-${{ matrix.test }}-
- run: pip install tox - run: pip install tox
- run: tox -e ${{ matrix.test }} - 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: coverage:
#needs: ["tests-unit", "tests-integration"] #needs: ["tests-unit", "tests-integration"]

View file

@ -13,3 +13,4 @@ commands =
blockchain: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.blockchain {posargs} 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} 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} other: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.other {posargs}
coverage combine tests