https://github.com/yaml2sbml-dev/yaml2sbml
Tip revision: 48ff99b44f666159a688a16ca80673ee7854bace authored by Jakob Vanhoefer on 07 March 2021, 16:53:47 UTC
fix notebooks
fix notebooks
Tip revision: 48ff99b
tox.ini
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
# See https://tox.readthedocs.io/en/latest/config.html for reference.
#
# running specif tests is possible e.g. via tox -e flake8
[tox]
# Environments run by default and in this order
# unless specified via CLI -eENVLIST
# or environment variable TOXENV
envlist =
pyroma
flake8
unittests
# Base-environment
[testenv]
# Dependencies
deps =
coverage
pytest
pytest-cov
pytest-console-scripts
# Sub-environments
# inherit settings defined in the base
[testenv:pyroma]
# No installation of yaml2sbml required
skip_install = true
deps =
pygments
pyroma
commands = pyroma --min=10 .
description =
Run pyroma to check the package friendliness
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-bandit
flake8-bugbear
flake8-colors
flake8-commas
flake8-comprehensions
flake8-print
flake8-use-fstring
pep8-naming
pydocstyle
commands =
flake8 yaml2sbml tests setup.py
description =
Run flake8 with various plugins
[testenv:unittests]
commands =
coverage erase
pytest \
--cov=yaml2sbml --cov-report=xml --cov-report=html \
tests
description =
Run unit tests
[testenv:notebooks]
deps =
nbmake
# Extras required from yaml2sbml
extras = examples
commands =
pytest --nbmake doc/examples
description =
Test notebooks execution
[testenv:doc]
extras =
doc
commands =
# Add -W to treat warnings as errors
sphinx-build -b html doc/ doc/build/html
description =
Test whether docs build passes