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: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y --no-install-recommends ffmpeg
|
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:
|
- env:
|
||||||
TEST_DB: ${{ matrix.db }}
|
TEST_DB: ${{ matrix.db }}
|
||||||
run: |
|
run: tox -e ${{ matrix.test }}
|
||||||
tox -e ${{ matrix.test }}
|
|
||||||
bash <(curl -s https://codecov.io/bash) -X gcov -F integration,${{ matrix.test }},${{ matrix.db }}
|
|
||||||
|
|
||||||
# build:
|
# build:
|
||||||
# needs: ["lint", "tests-unit", "tests-integration"]
|
# needs: ["lint", "tests-unit", "tests-integration"]
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
[coverage:run]
|
[coverage:run]
|
||||||
branch = True
|
branch = True
|
||||||
|
|
||||||
[coverage:paths]
|
#[coverage:paths]
|
||||||
source =
|
#source =
|
||||||
lbry
|
# lbry
|
||||||
.tox/*/lib/python*/site-packages/lbry
|
# .tox/*/lib/python*/site-packages/lbry
|
||||||
|
|
||||||
[cryptography.*,coincurve.*,pbkdf2]
|
[cryptography.*,coincurve.*,pbkdf2]
|
||||||
ignore_missing_imports = True
|
ignore_missing_imports = True
|
||||||
|
|
10
tox.ini
10
tox.ini
|
@ -6,9 +6,11 @@ extras = test
|
||||||
changedir = {toxinidir}/tests
|
changedir = {toxinidir}/tests
|
||||||
setenv =
|
setenv =
|
||||||
HOME=/tmp
|
HOME=/tmp
|
||||||
passenv = TEST_DB
|
passenv = *
|
||||||
|
whitelist_externals = /bin/bash
|
||||||
commands =
|
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}
|
#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}
|
||||||
|
/bin/bash <(curl -s https://codecov.io/bash) -X gcov -F integration,{envname},{env:TEST_DB}
|
||||||
|
|
Loading…
Reference in a new issue