-
Notifications
You must be signed in to change notification settings - Fork 227
/
tox.ini
44 lines (39 loc) · 874 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
[tox]
envlist = pre-commit,py{37,38,39,310}-sql{12,13,14,20}
skipsdist = true
minversion = 3.7.0
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[gh-actions:env]
SQLALCHEMY =
1.2: sql12
1.3: sql13
1.4: sql14
2.0: sql20
[testenv]
passenv = GITHUB_*
deps =
.[test]
sql12: sqlalchemy>=1.2,<1.3
sql13: sqlalchemy>=1.3,<1.4
sql14: sqlalchemy>=1.4,<1.5
sql20: sqlalchemy>=2.0.0b3
setenv =
SQLALCHEMY_WARN_20 = 1
commands =
python -W always -m pytest graphene_sqlalchemy --cov=graphene_sqlalchemy --cov-report=term --cov-report=xml {posargs}
[testenv:pre-commit]
basepython=python3.10
deps =
.[dev]
commands =
pre-commit {posargs:run --all-files}
[testenv:flake8]
basepython = python3.10
deps = -e.[dev]
commands =
flake8 --exclude setup.py,docs,examples,tests,.tox --max-line-length 120