forked from LBRYCommunity/lbry-sdk
moved codecov into tox
This commit is contained in:
parent
44bbd9578d
commit
e3cc6ea224
3 changed files with 18 additions and 12 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -85,12 +85,16 @@ jobs:
|
|||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y --no-install-recommends ffmpeg
|
||||
- run: pip install tox coverage
|
||||
- name: extract pip cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ./.tox
|
||||
key: tox-integration-${{ matrix.test }}-${{ matrix.db }}-${{ hashFiles('setup.py') }}
|
||||
restore-keys: txo-integration-${{ matrix.test }}-${{ matrix.db }}-
|
||||
- run: pip install tox
|
||||
- env:
|
||||
TEST_DB: ${{ matrix.db }}
|
||||
run: |
|
||||
tox -e ${{ matrix.test }}
|
||||
bash <(curl -s https://codecov.io/bash) -X gcov -F integration,${{ matrix.test }},${{ matrix.db }}
|
||||
run: tox -e ${{ matrix.test }}
|
||||
|
||||
# build:
|
||||
# needs: ["lint", "tests-unit", "tests-integration"]
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
[coverage:run]
|
||||
branch = True
|
||||
|
||||
[coverage:paths]
|
||||
source =
|
||||
lbry
|
||||
.tox/*/lib/python*/site-packages/lbry
|
||||
#[coverage:paths]
|
||||
#source =
|
||||
# lbry
|
||||
# .tox/*/lib/python*/site-packages/lbry
|
||||
|
||||
[cryptography.*,coincurve.*,pbkdf2]
|
||||
ignore_missing_imports = True
|
||||
|
|
10
tox.ini
10
tox.ini
|
@ -6,9 +6,11 @@ extras = test
|
|||
changedir = {toxinidir}/tests
|
||||
setenv =
|
||||
HOME=/tmp
|
||||
passenv = TEST_DB
|
||||
passenv = *
|
||||
whitelist_externals = /bin/bash
|
||||
commands =
|
||||
blockchain: coverage run -p --source={envsitepackagesdir}/lbry -m unittest -vv integration.blockchain.test_claim_commands.ChannelCommands.test_create_channel_names {posargs}
|
||||
blockchain: coverage run --source={envsitepackagesdir}/lbry -m unittest -vv integration.blockchain.test_claim_commands.ChannelCommands.test_create_channel_names {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}
|
||||
other: coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.other {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}
|
||||
/bin/bash <(curl -s https://codecov.io/bash) -X gcov -F integration,{envname},{env:TEST_DB}
|
||||
|
|
Loading…
Reference in a new issue