File tree 3 files changed +16
-10
lines changed
graphene_sqlalchemy/tests 3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : Tests
2
2
3
- on :
4
- push :
5
- branches :
6
- - ' master'
7
- pull_request :
8
- branches :
9
- - ' *'
3
+ on : [ push, pull_request ]
4
+
10
5
jobs :
11
6
test :
12
7
runs-on : ubuntu-latest
13
8
strategy :
14
9
max-parallel : 10
15
10
matrix :
16
- sql-alchemy : ["1.2", "1.3", "1.4"]
17
- python-version : ["3.7", "3.8", "3.9", "3.10"]
11
+ sql-alchemy : [ "1.2", "1.3", "1.4", "2.0" ]
12
+ python-version : [ "3.7", "3.8", "3.9", "3.10" ]
18
13
19
14
steps :
20
15
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change 2
2
from sqlalchemy import create_engine
3
3
from sqlalchemy .orm import sessionmaker
4
4
5
+ # fmt: off
6
+ # Fixme remove when https://github.com/kvesteri/sqlalchemy-utils/pull/644 is released #noqa
7
+ import sqlalchemy # noqa # isort:skip
8
+ if sqlalchemy .__version__ == "2.0.0b3" : # noqa # isort:skip
9
+ sqlalchemy .__version__ = "2.0.0" # noqa # isort:skip
10
+ # fmt: on
11
+
5
12
import graphene
6
13
7
14
from ..converter import convert_sqlalchemy_composite
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ SQLALCHEMY =
15
15
1.2: sql12
16
16
1.3: sql13
17
17
1.4: sql14
18
+ 2.0: sql20
18
19
19
20
[testenv]
20
21
passenv = GITHUB_*
@@ -23,8 +24,11 @@ deps =
23
24
sql12: sqlalchemy>=1.2,<1.3
24
25
sql13: sqlalchemy>=1.3,<1.4
25
26
sql14: sqlalchemy>=1.4,<1.5
27
+ sql20: sqlalchemy>=2.0.0b3,<2.1
28
+ setenv =
29
+ SQLALCHEMY_WARN_20 = 1
26
30
commands =
27
- pytest graphene_sqlalchemy --cov =graphene_sqlalchemy --cov-report =term --cov-report =xml {posargs}
31
+ python -W always -m pytest graphene_sqlalchemy --cov =graphene_sqlalchemy --cov-report =term --cov-report =xml {posargs}
28
32
29
33
[testenv:pre-commit]
30
34
basepython =python3.10
You can’t perform that action at this time.
0 commit comments