9
9
- checkout
10
10
- run :
11
11
name : Install black
12
- command : ' sudo pip install black'
12
+ command : " sudo pip install black"
13
13
- run :
14
14
name : Check formatting with black
15
- command : ' black --check .'
15
+ command : " black --check ."
16
16
17
17
# Core
18
18
python-2.7-core :
@@ -25,10 +25,10 @@ jobs:
25
25
- checkout
26
26
- run :
27
27
name : Install tox
28
- command : ' sudo pip install tox'
28
+ command : " sudo pip install tox"
29
29
- run :
30
30
name : Test with tox
31
- command : ' cd packages/python/plotly; tox -e py27-core'
31
+ command : " cd packages/python/plotly; tox -e py27-core"
32
32
no_output_timeout : 20m
33
33
34
34
python-3.5-core :
@@ -41,10 +41,10 @@ jobs:
41
41
- checkout
42
42
- run :
43
43
name : Install tox
44
- command : ' sudo pip install tox'
44
+ command : " sudo pip install tox"
45
45
- run :
46
46
name : Test with tox
47
- command : ' cd packages/python/plotly; tox -e py35-core'
47
+ command : " cd packages/python/plotly; tox -e py35-core"
48
48
no_output_timeout : 20m
49
49
50
50
python-3.6-core :
@@ -57,10 +57,10 @@ jobs:
57
57
- checkout
58
58
- run :
59
59
name : Install tox
60
- command : ' sudo pip install tox'
60
+ command : " sudo pip install tox"
61
61
- run :
62
62
name : Test with tox
63
- command : ' cd packages/python/plotly; tox -e py36-core'
63
+ command : " cd packages/python/plotly; tox -e py36-core"
64
64
no_output_timeout : 20m
65
65
66
66
python-3.7-core :
@@ -73,10 +73,10 @@ jobs:
73
73
- checkout
74
74
- run :
75
75
name : Install tox
76
- command : ' sudo pip install tox'
76
+ command : " sudo pip install tox"
77
77
- run :
78
78
name : Test with tox
79
- command : ' cd packages/python/plotly; tox -e py37-core'
79
+ command : " cd packages/python/plotly; tox -e py37-core"
80
80
no_output_timeout : 20m
81
81
82
82
python-3.7-percy :
@@ -122,14 +122,14 @@ jobs:
122
122
- checkout
123
123
- run :
124
124
name : Install tox
125
- command : ' sudo pip install tox'
125
+ command : " sudo pip install tox"
126
126
- run :
127
127
name : Install npm dependencies
128
128
command : cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install
129
129
no_output_timeout : 20m
130
130
- run :
131
131
name : Test with tox
132
- command : ' cd packages/python/plotly; tox -e py27-optional'
132
+ command : " cd packages/python/plotly; tox -e py27-optional"
133
133
no_output_timeout : 20m
134
134
135
135
python-3.5-optional :
@@ -142,14 +142,14 @@ jobs:
142
142
- checkout
143
143
- run :
144
144
name : Install tox
145
- command : ' sudo pip install tox'
145
+ command : " sudo pip install tox"
146
146
- run :
147
147
name : Install npm dependencies
148
148
command : cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install
149
149
no_output_timeout : 20m
150
150
- run :
151
151
name : Test with tox
152
- command : ' cd packages/python/plotly; tox -e py35-optional'
152
+ command : " cd packages/python/plotly; tox -e py35-optional"
153
153
no_output_timeout : 20m
154
154
155
155
python-3.6-optional :
@@ -162,14 +162,14 @@ jobs:
162
162
- checkout
163
163
- run :
164
164
name : Install tox
165
- command : ' sudo pip install tox'
165
+ command : " sudo pip install tox"
166
166
- run :
167
167
name : Install npm dependencies
168
168
command : cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install
169
169
no_output_timeout : 20m
170
170
- run :
171
171
name : Test with tox
172
- command : ' cd packages/python/plotly; tox -e py36-optional'
172
+ command : " cd packages/python/plotly; tox -e py36-optional"
173
173
no_output_timeout : 20m
174
174
175
175
python-3.7-optional :
@@ -182,14 +182,14 @@ jobs:
182
182
- checkout
183
183
- run :
184
184
name : Install tox
185
- command : ' sudo pip install tox'
185
+ command : " sudo pip install tox"
186
186
- run :
187
187
name : Install npm dependencies
188
188
command : cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install
189
189
no_output_timeout : 20m
190
190
- run :
191
191
name : Test with tox
192
- command : ' cd packages/python/plotly; tox -e py37-optional'
192
+ command : " cd packages/python/plotly; tox -e py37-optional"
193
193
no_output_timeout : 20m
194
194
195
195
# Plot.ly
@@ -203,10 +203,10 @@ jobs:
203
203
- checkout
204
204
- run :
205
205
name : Install tox
206
- command : ' sudo pip install tox'
206
+ command : " sudo pip install tox"
207
207
- run :
208
208
name : Test with tox
209
- command : ' cd packages/python/chart-studio; tox -e py27-plot_ly'
209
+ command : " cd packages/python/chart-studio; tox -e py27-plot_ly"
210
210
no_output_timeout : 20m
211
211
212
212
python-3.5-plot_ly :
@@ -219,10 +219,10 @@ jobs:
219
219
- checkout
220
220
- run :
221
221
name : Install tox
222
- command : ' sudo pip install tox'
222
+ command : " sudo pip install tox"
223
223
- run :
224
224
name : Test with tox
225
- command : ' cd packages/python/chart-studio; tox -e py35-plot_ly'
225
+ command : " cd packages/python/chart-studio; tox -e py35-plot_ly"
226
226
no_output_timeout : 20m
227
227
228
228
python-3.7-plot_ly :
@@ -235,10 +235,10 @@ jobs:
235
235
- checkout
236
236
- run :
237
237
name : Install tox
238
- command : ' sudo pip install tox'
238
+ command : " sudo pip install tox"
239
239
- run :
240
240
name : Test with tox
241
- command : ' cd packages/python/chart-studio; tox -e py37-plot_ly'
241
+ command : " cd packages/python/chart-studio; tox -e py37-plot_ly"
242
242
no_output_timeout : 20m
243
243
244
244
python-2-7-orca :
@@ -269,7 +269,7 @@ jobs:
269
269
pytest packages/python/plotly/plotly/tests/test_orca
270
270
271
271
- store_artifacts :
272
- path : plotly/tests/test_orca/images/linux/failed
272
+ path : plotly/tests/test_orca/images/linux/failed
273
273
274
274
python-3-5-orca :
275
275
docker :
@@ -299,7 +299,7 @@ jobs:
299
299
pytest packages/python/plotly/plotly/tests/test_orca
300
300
301
301
- store_artifacts :
302
- path : plotly/tests/test_orca/images/linux/failed
302
+ path : plotly/tests/test_orca/images/linux/failed
303
303
304
304
python-3-7-orca :
305
305
docker :
@@ -325,12 +325,12 @@ jobs:
325
325
command : |
326
326
. /home/circleci/miniconda/etc/profile.d/conda.sh
327
327
conda activate circle_optional
328
- pytest --doctest-modules --ignore packages/python/plotly/plotly/tests --ignore packages/python/plotly/plotly/matplotlylib/mplexporter/tests packages/python/plotly/plotly
328
+ pytest --doctest-modules --ignore packages/python/plotly/plotly/tests --ignore packages/python/plotly/plotly/matplotlylib/mplexporter/tests packages/python/plotly/plotly
329
329
pytest --disable-warnings packages/python/plotly/plotly/tests/test_core
330
330
pytest packages/python/plotly/plotly/tests/test_orca
331
331
332
332
- store_artifacts :
333
- path : plotly/tests/test_orca/images/linux/failed
333
+ path : plotly/tests/test_orca/images/linux/failed
334
334
335
335
plotlyjs_dev_build :
336
336
docker :
@@ -343,13 +343,13 @@ jobs:
343
343
- checkout
344
344
- run :
345
345
name : Install tox
346
- command : ' sudo pip install retrying tox black inflect'
346
+ command : " sudo pip install retrying tox black inflect"
347
347
- run :
348
348
name : Update jupyterlab-plotly version
349
- command : ' cd packages/python/plotly; python setup.py updateplotlywidgetversion'
349
+ command : " cd packages/python/plotly; python setup.py updateplotlywidgetversion"
350
350
- run :
351
351
name : Update plotly.js to dev
352
- command : ' cd packages/python/plotly; python setup.py updateplotlyjsdev'
352
+ command : " cd packages/python/plotly; python setup.py updateplotlyjsdev"
353
353
- run :
354
354
name : Test with tox
355
355
command : |
@@ -385,15 +385,13 @@ jobs:
385
385
- store_artifacts :
386
386
path : packages/python/plotly/dist
387
387
388
-
389
388
build-doc :
390
389
resource_class : xlarge
391
390
docker :
392
391
# specify the version you desire here
393
392
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
394
393
- image : circleci/python:3.6.8-node
395
394
396
-
397
395
working_directory : ~/project
398
396
399
397
steps :
@@ -419,12 +417,12 @@ jobs:
419
417
420
418
npm install orca
421
419
pip install -r requirements.txt
422
- if [ "${CIRCLE_BRANCH}" == "master " ]; then
420
+ if [ "${CIRCLE_BRANCH}" != "doc-prod " ]; then
423
421
pip uninstall -y plotly
424
422
cd ../packages/python/plotly
425
423
python3 setup.py install
426
- cd ../../../doc
427
- fi
424
+ cd ../../../doc
425
+ fi
428
426
echo 'export PATH="/home/circleci/project/doc/node_modules/.bin:$PATH"' >> $BASH_ENV
429
427
sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2
430
428
cd ..
@@ -484,12 +482,9 @@ jobs:
484
482
485
483
cd ../..
486
484
487
-
488
485
- store_artifacts :
489
486
path : doc/build
490
487
destination : doc/build
491
-
492
-
493
488
494
489
workflows :
495
490
version : 2
0 commit comments