Update tox file

This commit is contained in:
Jonathan Kim 2021-07-14 16:57:44 +01:00
parent cd740cd509
commit 2f9492b4af
2 changed files with 17 additions and 10 deletions

View File

@ -22,3 +22,5 @@ jobs:
pip install tox tox-gh-actions pip install tox tox-gh-actions
- name: Test with tox - name: Test with tox
run: tox run: tox
env:
TOXENV: ${{ matrix.toxenv }}

25
tox.ini
View File

@ -1,20 +1,27 @@
[tox] [tox]
envlist = flake8,py27,py34,py35,py36,py37,pre-commit,pypy,mypy envlist = py{27,36,37,38,39},flake8,pre-commit,mypy
skipsdist = true
[gh-actions]
python =
2.7: py27
3.6: py36
3.7: py37
3.8: py38
3.9: py39
[testenv] [testenv]
passenv = *
usedevelop = True
deps = deps =
.[test] -e.[test]
py{35,36,37}: pytest-asyncio py{36,37,38,39}: pytest-asyncio
setenv = setenv =
PYTHONPATH = .:{envdir} PYTHONPATH = .:{envdir}
commands = commands =
py{27,py}: py.test --cov=graphene graphene examples {posargs} py{27}: py.test --cov=graphene graphene examples {posargs}
py{35}: py.test --cov=graphene graphene examples tests_asyncio {posargs} py{36,37,38,39}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs}
py{36,37}: py.test --cov=graphene graphene examples tests_asyncio tests_py36 {posargs}
[testenv:pre-commit] [testenv:pre-commit]
basepython=python3.7
deps = deps =
pre-commit>0.12.0 pre-commit>0.12.0
setenv = setenv =
@ -34,5 +41,3 @@ deps = flake8
commands = commands =
pip install -e . pip install -e .
flake8 graphene flake8 graphene
[pytest]