Skip to content

Commit

Permalink
only duplicate blockchain CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
shyba committed Sep 3, 2021
1 parent c010a7a commit 9b03045
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ jobs:
test:
- datanetwork
- blockchain
- blockchain_legacy_search
- other
hub_type: ['legacy_hub', 'new_hub']
steps:
- name: Configure sysctl limits
run: |
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ 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}
blockchain_legacy_search: ENABLE_LEGACY_SEARCH=1 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}

0 comments on commit 9b03045

Please sign in to comment.