@@ -18,34 +18,36 @@ jobs:
18
18
python-3.6-core :
19
19
docker :
20
20
- image : circleci/python:3.6-stretch-node-browsers
21
- environment :
22
- PLOTLY_TOX_PYTHON_36 : python3.6
23
21
24
22
steps :
25
23
- checkout
26
24
- run :
27
- name : Install tox
28
- command : " sudo pip install tox "
25
+ name : Install dependencies
26
+ command : " cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_36_core.txt "
29
27
- run :
30
- name : Test with tox
31
- command : " cd packages/python/plotly; tox -e py36-core "
28
+ name : Test core
29
+ command : " cd packages/python/plotly; pytest plotly/tests/test_core "
32
30
no_output_timeout : 20m
33
31
34
32
python-3.7-core :
35
33
docker :
36
34
- image : circleci/python:3.7-stretch-node-browsers
37
- environment :
38
- PLOTLY_TOX_PYTHON_37 : python3.7
39
35
40
36
steps :
41
37
- checkout
42
38
- run :
43
- name : Install tox
44
- command : " sudo pip install tox "
39
+ name : Install dependencies
40
+ command : " cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_37_core.txt "
45
41
- run :
46
- name : Test with tox
47
- command : " cd packages/python/plotly; tox -e py37-core "
42
+ name : Test core
43
+ command : " cd packages/python/plotly; pytest plotly/tests/test_core "
48
44
no_output_timeout : 20m
45
+ - run :
46
+ name : Test dependencdies not imported
47
+ command : " cd packages/python/plotly; pytest -x test_init/test_dependencies_not_imported.py"
48
+ - run :
49
+ name : Test lazy imports
50
+ command : " cd packages/python/plotly; pytest -x test_init/test_lazy_imports.py"
49
51
50
52
python-3.7-percy :
51
53
docker :
@@ -83,50 +85,68 @@ jobs:
83
85
python-3.6-optional :
84
86
docker :
85
87
- image : circleci/python:3.6-stretch-node-browsers
86
- environment :
87
- PLOTLY_TOX_PYTHON_36 : python3.6
88
88
89
89
steps :
90
90
- checkout
91
91
- run :
92
- name : Install tox
93
- command : " sudo pip install tox"
92
+ name : Install dependencies
93
+ command : " cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_36_optional.txt"
94
+ - run :
95
+ name : Test core
96
+ command : " cd packages/python/plotly; pytest plotly/tests/test_core"
97
+ no_output_timeout : 20m
98
+ - run :
99
+ name : Test optional
100
+ command : " cd packages/python/plotly; pytest plotly/tests/test_optional"
101
+ no_output_timeout : 20m
94
102
- run :
95
- name : Test with tox
96
- command : " cd packages/python/plotly; tox -e py36-optional"
103
+ name : Test utils
104
+ command : " cd packages/python/plotly; pytest _plotly_utils/tests/"
105
+ no_output_timeout : 20m
106
+ - run :
107
+ name : Test io
108
+ command : " cd packages/python/plotly; pytest plotly/tests/test_io"
97
109
no_output_timeout : 20m
98
110
99
111
python-3.7-optional :
100
112
docker :
101
113
- image : circleci/python:3.7-stretch-node-browsers
102
- environment :
103
- PLOTLY_TOX_PYTHON_37 : python3.7
104
114
105
115
steps :
106
116
- checkout
107
117
- run :
108
- name : Install tox
109
- command : " sudo pip install tox "
118
+ name : Install dependencies
119
+ command : " cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_37_optional.txt "
110
120
- run :
111
- name : Test with tox
112
- command : " cd packages/python/plotly; tox -e py37-optional"
121
+ name : Test core
122
+ command : " cd packages/python/plotly; pytest plotly/tests/test_core"
123
+ no_output_timeout : 20m
124
+ - run :
125
+ name : Test optional
126
+ command : " cd packages/python/plotly; pytest plotly/tests/test_optional"
127
+ no_output_timeout : 20m
128
+ - run :
129
+ name : Test utils
130
+ command : " cd packages/python/plotly; pytest _plotly_utils/tests/"
131
+ no_output_timeout : 20m
132
+ - run :
133
+ name : Test io
134
+ command : " cd packages/python/plotly; pytest plotly/tests/test_io"
113
135
no_output_timeout : 20m
114
136
115
137
# Chart studio
116
138
python-3.7-plot_ly :
117
139
docker :
118
140
- image : circleci/python:3.7-stretch-node-browsers
119
- environment :
120
- PLOTLY_TOX_PYTHON_37 : python3.7
121
141
122
142
steps :
123
143
- checkout
124
144
- run :
125
- name : Install tox
126
- command : " sudo pip install tox "
145
+ name : Install dependencies
146
+ command : " cd packages/python; sudo pip install -r ./chart-studio/test_requirements/requirements_37.txt "
127
147
- run :
128
- name : Test with tox
129
- command : " cd packages/python/chart-studio; tox -e py37-plot_ly "
148
+ name : Tests
149
+ command : " cd packages/python/chart-studio; pytest -x chart_studio/tests/ "
130
150
no_output_timeout : 20m
131
151
132
152
python-3-7-orca :
@@ -164,27 +184,29 @@ jobs:
164
184
docker :
165
185
- image : circleci/python:3.7-stretch-node-browsers
166
186
environment :
167
- PLOTLY_TOX_PYTHON_37 : python3.7
168
187
LANG : en_US.UTF-8
169
188
170
189
steps :
171
190
- checkout
172
191
- run :
173
- name : Install tox
174
- command : " sudo pip install retrying tox black inflect"
192
+ name : Install dependencies
193
+ command : " cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_37_core.txt black inflect"
175
194
- run :
176
195
name : Update jupyterlab-plotly version
177
196
command : " cd packages/python/plotly; python setup.py updateplotlywidgetversion"
178
197
- run :
179
198
name : Update plotly.js to dev
180
199
command : " cd packages/python/plotly; python setup.py updateplotlyjsdev"
181
200
- run :
182
- name : Test with tox
183
- command : |
184
- cd packages/python/plotly
185
- locale
186
- tox -e py37-core -- -k 'not nodev'
201
+ name : Test core
202
+ command : " cd packages/python/plotly; locale; pytest -k 'not nodev' plotly/tests/test_core"
187
203
no_output_timeout : 20m
204
+ - run :
205
+ name : Test dependencdies not imported
206
+ command : " cd packages/python/plotly; locale; pytest -x -k 'not nodev' test_init/test_dependencies_not_imported.py"
207
+ - run :
208
+ name : Test lazy imports
209
+ command : " cd packages/python/plotly; locale; pytest -x -k 'not nodev' test_init/test_lazy_imports.py"
188
210
- run :
189
211
name : Commit
190
212
command : |
0 commit comments