From 17ed4408cb8aff7275cc7b1d011784d5f237b3cd Mon Sep 17 00:00:00 2001 From: Jan-Niklas Weder Date: Thu, 16 May 2024 16:27:13 +0200 Subject: [PATCH] Removed coverage line from tox.ini --- .github/workflows/test-build-and-publish.yml | 6 +++--- tox.ini | 9 ++------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test-build-and-publish.yml b/.github/workflows/test-build-and-publish.yml index 2179efb..62b436c 100644 --- a/.github/workflows/test-build-and-publish.yml +++ b/.github/workflows/test-build-and-publish.yml @@ -74,7 +74,7 @@ jobs: run: python -m pip install . - name: Install tox - run: python -m pip install tox-gh>=1.2 + run: python -m pip install tox - name: Setup test suite run: tox -vv --notest @@ -83,11 +83,11 @@ jobs: run: echo "${{ secrets.BIOCYC_USER }}\n${{ secrets.BIOCYC_PASS }}" >> credentials.txt - name: Run test suite - run: tox --skip-pkg-install + run: tox --skip-pkg-install -e py build-publish: needs: [unittest] - name: Build and publish the package to TestPyPI + name: Build and publish the package to PyPI if: github.event.pull_request.merged == true && github.event_name != 'schedule' runs-on: ubuntu-latest diff --git a/tox.ini b/tox.ini index af007b1..bcc95d7 100644 --- a/tox.ini +++ b/tox.ini @@ -4,16 +4,12 @@ requires = tox-conda envlist = format, lint, types, py310, py311, py312 isolated_build = True -[testenv:py312] +[testenv] description = "Runs test suite" download = true deps = - pytest-cov - genbadge[coverage] pytest -commands_pre = coverage erase -commands = pytest --cov=cobramod --cov-append --cov-report xml {posargs} -commands_post = genbadge coverage -i ./coverage.xml -o ./docs/source/img/coverage.svg +commands = pytest {posargs} [testenv:ui] description = "Runs ui tests" @@ -44,5 +40,4 @@ commands = deps = mypy commands = - mypy --install-types --non-interactive mypy src/cobramod/ tests/