Skip to content

Commit

Permalink
Removed coverage line from tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
JanNiklasWeder committed May 16, 2024
1 parent 148aa8f commit 17ed440
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down
9 changes: 2 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -44,5 +40,4 @@ commands =
deps =
mypy
commands =
mypy --install-types --non-interactive
mypy src/cobramod/ tests/

0 comments on commit 17ed440

Please sign in to comment.