Update tox

This commit is contained in:
Jonathan Kim 2021-07-19 07:10:33 +01:00
parent 9d8a4ec83c
commit 6d91caadac

33
tox.ini
View File

@ -1,37 +1,42 @@
[tox] [tox]
envlist = flake8,py36,py37,py38,pre-commit,mypy envlist = py{36,37,38,39,310},flake8,pre-commit,mypy
skipsdist = true
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39
3.10-dev: py310
[testenv] [testenv]
passenv = *
usedevelop = True
deps = deps =
.[test] -e.[test]
py{36,37,38,39,310}: pytest-asyncio
setenv = setenv =
PYTHONPATH = .:{envdir} PYTHONPATH = .:{envdir}
commands = 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] [testenv:pre-commit]
basepython=python3.7
deps = deps =
pre-commit>=2,<3 pre-commit>0.12.0
setenv = setenv =
LC_CTYPE=en_US.UTF-8 LC_CTYPE=en_US.UTF-8
commands = commands =
pre-commit {posargs:run --all-files} pre-commit {posargs:run --all-files}
[testenv:mypy] [testenv:mypy]
basepython=python3.7
deps = deps =
mypy>=0.761,<1 mypy
types-six
commands = commands =
mypy graphene mypy graphene
[testenv:flake8] [testenv:flake8]
basepython=python3.7 deps = flake8
deps =
flake8>=3.7,<4
commands = commands =
pip install --pre -e . pip install -e .
flake8 graphene flake8 graphene
[pytest]