-
Notifications
You must be signed in to change notification settings - Fork 50
/
tox.ini
107 lines (93 loc) · 2.94 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[tox]
envlist =
# Vary Neo4j & Pandas versions
py{39, 310}-neo4j{4,5}-pandas{1,2}-main-{standard,encrypted},
# Vary Pandas 1.x + PyArrow
py{39,310}-pandas1-pyarrow{15,16, 17, 18}-main-{standard,encrypted},
py311-pandas1-pyarrow{15,16, 17, 18}-main-{standard,encrypted},
# Vary Pandas 2.x + PyArrow
py{39,310,311}-pandas2-pyarrow{17,18}-main-{standard,encrypted},
py312-pandas2-pyarrow{18}-main-{standard,encrypted},
# PR envs
py{39,310}-neo4j{4,5}-pullrequest-{standard,encrypted},
py{311,312}-pullrequest-{standard,encrypted},
# Aura
py311-main-aura,
# Session tests
py39-neo4j{5}-pyarrow16-main-{cloud-architecture}
py39-pullrequest-{cloud-architecture}
# Vary networkx versions only for relevant tests
py311-neo4j{4,5}-pandas1-pyarrow7-networkx{2,3}-main-nx
py311-neo4j{4,5}-pandas2-pyarrow15-networkx{2,3}-main-nx
py311-networkx3-pullrequest-nx
# Notebooks
jupyter-notebook-ci
jupyter-notebook-session-ci
[testenv]
passenv =
NEO4J_URI
NEO4J_USER
NEO4J_PASSWORD
NEO4J_DB
NEO4J_AURA_DB_URI
allowlist_externals =
ruby
bash
rm
deps =
-r {toxinidir}/requirements/dev/test.txt
neo4j4: neo4j >= 4.4.2, < 5.0
neo4j5: neo4j >= 5.0, < 6.0
pandas1: pandas >= 1.0, < 2.0
pandas1: numpy == 1.24.3
pandas2: pandas >= 2.0, < 3.0
pyarrow15: pyarrow >= 15.0, < 16.0
pyarrow16: pyarrow >= 16.0, < 17.0
pyarrow17: pyarrow >= 17.0, < 18.0
pyarrow18: pyarrow >= 18.0, < 19.0
networkx2: networkx >= 2.0, < 3.0
networkx3: networkx >= 3.0, < 4.0
commands =
standard: bash -ec 'pytest graphdatascience/tests --include-enterprise --include-model-store-location && ruby ./doc/tests/test_docs.rb python3 -n test_enterprise && pytest ./doc/tests/test_client_only_endpoints.py'
encrypted: pytest graphdatascience/tests --encrypted-only
aura: pytest graphdatascience/tests --include-enterprise --target-aura
ogb: pytest graphdatascience/tests --include-enterprise --include-ogb
nx: bash -ec 'pytest graphdatascience/tests/*/test_nx_loader.py --include-enterprise && ruby ./doc/tests/test_docs.rb python3 -n test_networkx'
cloud-architecture: pytest graphdatascience/tests --include-cloud-architecture
rm -rf {envdir}/lib
[testenv:jupyter-notebook-ci]
passenv =
NEO4J_URI
NEO4J_USER
NEO4J_PASSWORD
NEO4J_DB
deps =
-r {toxinidir}/requirements/dev/notebook-ci.txt
commands =
python ./scripts/run_notebooks.py
[testenv:jupyter-notebook-session-ci] # see examples/.env.template for expected environment variables
passenv =
AURA_ENV
AURA_API_CLIENT_ID
AURA_API_CLIENT_SECRET
AURA_API_TENANT_ID
AURA_DB_ADDRESS
AURA_DB_USER
AURA_DB_PW
deps =
-r {toxinidir}/requirements/dev/notebook-aura-ci.txt
commands =
python ./scripts/run_notebooks.py sessions-attached
[testenv:jupyter-notebook-session-self-managed-db-ci]
passenv =
AURA_ENV
AURA_API_CLIENT_ID
AURA_API_CLIENT_SECRET
AURA_API_TENANT_ID
NEO4J_URI
NEO4J_USER
NEO4J_PASSWORD
deps =
-r {toxinidir}/requirements/dev/notebook-aura-ci.txt
commands =
python ./scripts/run_notebooks.py sessions-self-managed-db