only duplicate blockchain CI step

This commit is contained in:
Victor Shyba 2021-09-03 03:07:15 -03:00 committed by Victor Shyba
parent 40d26cb868
commit 646902e75e
2 changed files with 8 additions and 6 deletions

View file

@ -78,8 +78,8 @@ jobs:
test:
- datanetwork
- blockchain
- blockchain_legacy_search
- other
hub_type: ['legacy_hub', 'new_hub']
steps:
- name: Configure sysctl limits
run: |
@ -106,10 +106,7 @@ jobs:
key: tox-integration-${{ matrix.test }}-${{ hashFiles('setup.py') }}
restore-keys: txo-integration-${{ matrix.test }}-
- run: pip install tox coverage coveralls
- name: run tox
env:
ENABLE_LEGACY_SEARCH: ${{ matrix.hub_type == 'legacy_hub' }}
run: tox -e ${{ matrix.test }}
- run: tox -e ${{ matrix.test }}
- name: submit coverage report
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -8,9 +8,14 @@ changedir = {toxinidir}/tests
setenv =
HOME=/tmp
ELASTIC_HOST={env:ELASTIC_HOST:localhost}
ENABLE_LEGACY_SEARCH={env:ENABLE_LEGACY_SEARCH:0}
commands =
orchstr8 download
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}
[testenv:blockchain_legacy_search]
setenv =
ENABLE_LEGACY_SEARCH=1
commands =
coverage run -p --source={envsitepackagesdir}/lbry -m unittest discover -vv integration.blockchain {posargs}