From 6d91caadacc7e34c4df41534f7cc10fd6adcf282 Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Mon, 19 Jul 2021 07:10:33 +0100 Subject: [PATCH] Update tox --- tox.ini | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/tox.ini b/tox.ini index dd922c46..a3429a15 100644 --- a/tox.ini +++ b/tox.ini @@ -1,37 +1,42 @@ [tox] -envlist = flake8,py36,py37,py38,pre-commit,mypy -skipsdist = true +envlist = py{36,37,38,39,310},flake8,pre-commit,mypy + +[gh-actions] +python = + 3.6: py36 + 3.7: py37 + 3.8: py38 + 3.9: py39 + 3.10-dev: py310 [testenv] +passenv = * +usedevelop = True deps = - .[test] + -e.[test] + py{36,37,38,39,310}: pytest-asyncio setenv = PYTHONPATH = .:{envdir} commands = - py{36,37,38}: pytest --cov=graphene graphene examples {posargs} + py{36,37,38,39,310}: py.test --cov=graphene graphene examples {posargs} [testenv:pre-commit] -basepython=python3.7 deps = - pre-commit>=2,<3 + pre-commit>0.12.0 setenv = LC_CTYPE=en_US.UTF-8 commands = pre-commit {posargs:run --all-files} [testenv:mypy] -basepython=python3.7 deps = - mypy>=0.761,<1 + mypy + types-six commands = mypy graphene [testenv:flake8] -basepython=python3.7 -deps = - flake8>=3.7,<4 +deps = flake8 commands = - pip install --pre -e . + pip install -e . flake8 graphene - -[pytest]