From 646902e75ebb7dc7938d84af5168255b343310c8 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 3 Sep 2021 03:07:15 -0300 Subject: [PATCH] only duplicate blockchain CI step --- .github/workflows/main.yml | 7 ++----- tox.ini | 7 ++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b3ee978a2..1bc557b78 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }} diff --git a/tox.ini b/tox.ini index 61c961c6f..2df54f007 100644 --- a/tox.ini +++ b/tox.ini @@ -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}