Skip to content

Commit 712032c

Browse files
committed
Make Tox test a full matrix of Python + dep versions, remove linting from it
1 parent 958422f commit 712032c

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

tox.ini

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
1+
# https://tox.readthedocs.io/en/latest/example/basic.html#compressing-dependency-matrix
12
[tox]
2-
envlist = pre-commit,py37
3+
envlist = py{37,38}-graphene{2,21}-pydantic{0,1}
34
isolated_build = true
45

56
[testenv]
67
whitelist_externals = poetry
8+
deps =
9+
graphene2: graphene>=2.0,<2.1
10+
graphene21: graphene>=2.1,<3.0
11+
pydantic0: pydantic>=0.26,<1.0
12+
pydantic1: pydantic>=1.0,<2.0
13+
pytest
14+
pytest-cov
715
commands =
8-
poetry install -v
916
pytest tests/ --cov-report=term-missing --cov=graphene_pydantic {posargs}
10-
mypy --ignore-missing-imports --no-strict-optional -m graphene_pydantic
11-
black --check graphene_pydantic
1217

13-
[testenv:pre-commit]
14-
basepython = python3.7
15-
whitelist_externals = poetry
16-
commands =
17-
poetry install -v
18-
pre-commit {posargs:run --all-files}

0 commit comments

Comments
 (0)