diff --git a/setup.cfg b/setup.cfg index 31c92606c..8ff0836b4 100644 --- a/setup.cfg +++ b/setup.cfg @@ -36,3 +36,45 @@ exclude_lines = all-files = true source-dir = docs/source build-dir = docs/build + +[tox:tox] +envlist = + py3{7,8}-nocov, + py39-{cov,mypy,lint,docs} + +[gh-actions] +python = + 3.7: py37-nocov + 3.8: py38-nocov + 3.9: py39-{cov,mypy,lint,docs} + +[testenv] +wheel = true +extras = all +passenv = * +usedevelop = + nocov: false + cov: true +deps = + nocov: -r requirements/test.txt + cov: -r requirements/test.txt +commands = + nocov: pytest tests --no-cov {posargs} + cov: pytest tests {posargs} + +[testenv:py38-mypy] +deps = -r requirements/mypy.txt +commands = mypy --strict idom + +[testenv:py38-lint] +skip_install = true +deps = -r requirements/lint.txt +commands = + black . --check --exclude "idom/client/app/node_modules/.*" + flake8 idom tests docs + +[testenv:py38-docs] +deps = -r requirements/docs.txt +commands = + sphinx-build -b html docs/source docs/build + sphinx-build -b doctest docs/source docs/build diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 2b55afc1c..000000000 --- a/tox.ini +++ /dev/null @@ -1,42 +0,0 @@ - -[tox] -envlist = - py3{7,8}-nocov, - py39-{cov,mypy,lint,docs} - -[gh-actions] -python = - 3.7: py37-nocov - 3.8: py38-nocov - 3.9: py39-{cov,mypy,lint,docs} - -[testenv] -wheel = true -extras = all -passenv = * -usedevelop = - nocov: false - cov: true -deps = - nocov: -r requirements/test.txt - cov: -r requirements/test.txt -commands = - nocov: pytest tests --no-cov {posargs} - cov: pytest tests {posargs} - -[testenv:py38-mypy] -deps = -r requirements/mypy.txt -commands = mypy --strict idom - -[testenv:py38-lint] -skip_install = true -deps = -r requirements/lint.txt -commands = - black . --check --exclude "idom/client/app/node_modules/.*" - flake8 idom tests docs - -[testenv:py38-docs] -deps = -r requirements/docs.txt -commands = - sphinx-build -b html docs/source docs/build - sphinx-build -b doctest docs/source docs/build