|
14 | 14 | name: Check formatting with black
|
15 | 15 | command: 'black --check .'
|
16 | 16 |
|
17 |
| - # Core |
18 |
| - python-2.7-core: |
19 |
| - docker: |
20 |
| - - image: circleci/python:2.7-stretch-node-browsers |
21 |
| - environment: |
22 |
| - PLOTLY_TOX_PYTHON_27: python2.7 |
23 |
| - |
24 |
| - steps: |
25 |
| - - checkout |
26 |
| - - run: |
27 |
| - name: Install tox |
28 |
| - command: 'sudo pip install tox' |
29 |
| - - run: |
30 |
| - name: Test with tox |
31 |
| - command: 'cd packages/python/plotly; tox -e py27-core' |
32 |
| - no_output_timeout: 20m |
33 |
| - |
34 |
| - python-3.5-core: |
35 |
| - docker: |
36 |
| - - image: circleci/python:3.5-stretch-node-browsers |
37 |
| - environment: |
38 |
| - PLOTLY_TOX_PYTHON_35: python3.5 |
39 |
| - |
40 |
| - steps: |
41 |
| - - checkout |
42 |
| - - run: |
43 |
| - name: Install tox |
44 |
| - command: 'sudo pip install tox' |
45 |
| - - run: |
46 |
| - name: Test with tox |
47 |
| - command: 'cd packages/python/plotly; tox -e py35-core' |
48 |
| - no_output_timeout: 20m |
49 |
| - |
50 |
| - python-3.6-core: |
51 |
| - docker: |
52 |
| - - image: circleci/python:3.6-stretch-node-browsers |
53 |
| - environment: |
54 |
| - PLOTLY_TOX_PYTHON_36: python3.6 |
55 |
| - |
56 |
| - steps: |
57 |
| - - checkout |
58 |
| - - run: |
59 |
| - name: Install tox |
60 |
| - command: 'sudo pip install tox' |
61 |
| - - run: |
62 |
| - name: Test with tox |
63 |
| - command: 'cd packages/python/plotly; tox -e py36-core' |
64 |
| - no_output_timeout: 20m |
65 | 17 |
|
66 | 18 | python-3.7-core:
|
67 | 19 | docker:
|
@@ -106,279 +58,6 @@ jobs:
|
106 | 58 | npx percy snapshot tests/percy/
|
107 | 59 | rm tests/percy/*.html
|
108 | 60 |
|
109 |
| - # Optional |
110 |
| - python-2.7-optional: |
111 |
| - docker: |
112 |
| - - image: circleci/python:2.7-stretch-node-browsers |
113 |
| - environment: |
114 |
| - PLOTLY_TOX_PYTHON_27: python2.7 |
115 |
| - |
116 |
| - steps: |
117 |
| - - checkout |
118 |
| - - run: |
119 |
| - name: Install tox |
120 |
| - command: 'sudo pip install tox' |
121 |
| - - run: |
122 |
| - name: Install npm dependencies |
123 |
| - command: cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install |
124 |
| - no_output_timeout: 20m |
125 |
| - - run: |
126 |
| - name: Test with tox |
127 |
| - command: 'cd packages/python/plotly; tox -e py27-optional' |
128 |
| - no_output_timeout: 20m |
129 |
| - |
130 |
| - python-3.5-optional: |
131 |
| - docker: |
132 |
| - - image: circleci/python:3.5-stretch-node-browsers |
133 |
| - environment: |
134 |
| - PLOTLY_TOX_PYTHON_35: python3.5 |
135 |
| - |
136 |
| - steps: |
137 |
| - - checkout |
138 |
| - - run: |
139 |
| - name: Install tox |
140 |
| - command: 'sudo pip install tox' |
141 |
| - - run: |
142 |
| - name: Install npm dependencies |
143 |
| - command: cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install |
144 |
| - no_output_timeout: 20m |
145 |
| - - run: |
146 |
| - name: Test with tox |
147 |
| - command: 'cd packages/python/plotly; tox -e py35-optional' |
148 |
| - no_output_timeout: 20m |
149 |
| - |
150 |
| - python-3.6-optional: |
151 |
| - docker: |
152 |
| - - image: circleci/python:3.6-stretch-node-browsers |
153 |
| - environment: |
154 |
| - PLOTLY_TOX_PYTHON_36: python3.6 |
155 |
| - |
156 |
| - steps: |
157 |
| - - checkout |
158 |
| - - run: |
159 |
| - name: Install tox |
160 |
| - command: 'sudo pip install tox' |
161 |
| - - run: |
162 |
| - name: Install npm dependencies |
163 |
| - command: cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install |
164 |
| - no_output_timeout: 20m |
165 |
| - - run: |
166 |
| - name: Test with tox |
167 |
| - command: 'cd packages/python/plotly; tox -e py36-optional' |
168 |
| - no_output_timeout: 20m |
169 |
| - |
170 |
| - python-3.7-optional: |
171 |
| - docker: |
172 |
| - - image: circleci/python:3.7-stretch-node-browsers |
173 |
| - environment: |
174 |
| - PLOTLY_TOX_PYTHON_37: python3.7 |
175 |
| - |
176 |
| - steps: |
177 |
| - - checkout |
178 |
| - - run: |
179 |
| - name: Install tox |
180 |
| - command: 'sudo pip install tox' |
181 |
| - - run: |
182 |
| - name: Install npm dependencies |
183 |
| - command: cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install |
184 |
| - no_output_timeout: 20m |
185 |
| - - run: |
186 |
| - name: Test with tox |
187 |
| - command: 'cd packages/python/plotly; tox -e py37-optional' |
188 |
| - no_output_timeout: 20m |
189 |
| - |
190 |
| - # Plot.ly |
191 |
| - python-2.7-plot_ly: |
192 |
| - docker: |
193 |
| - - image: circleci/python:2.7-stretch-node-browsers |
194 |
| - environment: |
195 |
| - PLOTLY_TOX_PYTHON_27: python2.7 |
196 |
| - |
197 |
| - steps: |
198 |
| - - checkout |
199 |
| - - run: |
200 |
| - name: Install tox |
201 |
| - command: 'sudo pip install tox' |
202 |
| - - run: |
203 |
| - name: Test with tox |
204 |
| - command: 'cd packages/python/chart-studio; tox -e py27-plot_ly' |
205 |
| - no_output_timeout: 20m |
206 |
| - |
207 |
| - python-3.5-plot_ly: |
208 |
| - docker: |
209 |
| - - image: circleci/python:3.5-stretch-node-browsers |
210 |
| - environment: |
211 |
| - PLOTLY_TOX_PYTHON_35: python3.5 |
212 |
| - |
213 |
| - steps: |
214 |
| - - checkout |
215 |
| - - run: |
216 |
| - name: Install tox |
217 |
| - command: 'sudo pip install tox' |
218 |
| - - run: |
219 |
| - name: Test with tox |
220 |
| - command: 'cd packages/python/chart-studio; tox -e py35-plot_ly' |
221 |
| - no_output_timeout: 20m |
222 |
| - |
223 |
| - python-3.7-plot_ly: |
224 |
| - docker: |
225 |
| - - image: circleci/python:3.7-stretch-node-browsers |
226 |
| - environment: |
227 |
| - PLOTLY_TOX_PYTHON_37: python3.7 |
228 |
| - |
229 |
| - steps: |
230 |
| - - checkout |
231 |
| - - run: |
232 |
| - name: Install tox |
233 |
| - command: 'sudo pip install tox' |
234 |
| - - run: |
235 |
| - name: Test with tox |
236 |
| - command: 'cd packages/python/chart-studio; tox -e py37-plot_ly' |
237 |
| - no_output_timeout: 20m |
238 |
| - |
239 |
| - python-2-7-orca: |
240 |
| - docker: |
241 |
| - - image: circleci/node:10.9-stretch-browsers |
242 |
| - environment: |
243 |
| - PYTHON_VERSION: 2.7 |
244 |
| - |
245 |
| - steps: |
246 |
| - - checkout |
247 |
| - - restore_cache: |
248 |
| - keys: |
249 |
| - - conda-27-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }} |
250 |
| - - run: |
251 |
| - name: Create conda environment |
252 |
| - command: .circleci/create_conda_optional_env.sh |
253 |
| - |
254 |
| - - save_cache: |
255 |
| - key: conda-27-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }} |
256 |
| - paths: |
257 |
| - - /home/circleci/miniconda/ |
258 |
| - - run: |
259 |
| - name: Run Tests |
260 |
| - command: | |
261 |
| - . /home/circleci/miniconda/etc/profile.d/conda.sh |
262 |
| - conda activate circle_optional |
263 |
| - pytest --disable-warnings packages/python/plotly/plotly/tests/test_core |
264 |
| - pytest packages/python/plotly/plotly/tests/test_orca |
265 |
| -
|
266 |
| - - store_artifacts: |
267 |
| - path: plotly/tests/test_orca/images/linux/failed |
268 |
| - |
269 |
| - python-3-5-orca: |
270 |
| - docker: |
271 |
| - - image: circleci/node:10.9-stretch-browsers |
272 |
| - environment: |
273 |
| - PYTHON_VERSION: 3.5 |
274 |
| - |
275 |
| - steps: |
276 |
| - - checkout |
277 |
| - - restore_cache: |
278 |
| - keys: |
279 |
| - - conda-35-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }} |
280 |
| - - run: |
281 |
| - name: Create conda environment |
282 |
| - command: .circleci/create_conda_optional_env.sh |
283 |
| - |
284 |
| - - save_cache: |
285 |
| - key: conda-35-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }} |
286 |
| - paths: |
287 |
| - - /home/circleci/miniconda/ |
288 |
| - - run: |
289 |
| - name: Run Tests |
290 |
| - command: | |
291 |
| - . /home/circleci/miniconda/etc/profile.d/conda.sh |
292 |
| - conda activate circle_optional |
293 |
| - pytest --disable-warnings packages/python/plotly/plotly/tests/test_core |
294 |
| - pytest packages/python/plotly/plotly/tests/test_orca |
295 |
| -
|
296 |
| - - store_artifacts: |
297 |
| - path: plotly/tests/test_orca/images/linux/failed |
298 |
| - |
299 |
| - python-3-7-orca: |
300 |
| - docker: |
301 |
| - - image: circleci/node:10.9-stretch-browsers |
302 |
| - environment: |
303 |
| - PYTHON_VERSION: 3.7 |
304 |
| - |
305 |
| - steps: |
306 |
| - - checkout |
307 |
| - - restore_cache: |
308 |
| - keys: |
309 |
| - - conda-37-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }} |
310 |
| - - run: |
311 |
| - name: Create conda environment |
312 |
| - command: .circleci/create_conda_optional_env.sh |
313 |
| - |
314 |
| - - save_cache: |
315 |
| - key: conda-37-v1-{{ checksum ".circleci/create_conda_optional_env.sh" }} |
316 |
| - paths: |
317 |
| - - /home/circleci/miniconda/ |
318 |
| - - run: |
319 |
| - name: Run Tests |
320 |
| - command: | |
321 |
| - . /home/circleci/miniconda/etc/profile.d/conda.sh |
322 |
| - conda activate circle_optional |
323 |
| - pytest --disable-warnings packages/python/plotly/plotly/tests/test_core |
324 |
| - pytest packages/python/plotly/plotly/tests/test_orca |
325 |
| -
|
326 |
| - - store_artifacts: |
327 |
| - path: plotly/tests/test_orca/images/linux/failed |
328 |
| - |
329 |
| - plotlyjs_dev_build: |
330 |
| - docker: |
331 |
| - - image: circleci/python:3.7-stretch-node-browsers |
332 |
| - environment: |
333 |
| - PLOTLY_TOX_PYTHON_37: python3.7 |
334 |
| - LANG: en_US.UTF-8 |
335 |
| - |
336 |
| - steps: |
337 |
| - - checkout |
338 |
| - - run: |
339 |
| - name: Install tox |
340 |
| - command: 'sudo pip install retrying tox black inflect' |
341 |
| - - run: |
342 |
| - name: Update jupyterlab-plotly version |
343 |
| - command: 'cd packages/python/plotly; python setup.py updateplotlywidgetversion' |
344 |
| - - run: |
345 |
| - name: Update plotly.js to dev |
346 |
| - command: 'cd packages/python/plotly; python setup.py updateplotlyjsdev' |
347 |
| - - run: |
348 |
| - name: Test with tox |
349 |
| - command: | |
350 |
| - cd packages/python/plotly |
351 |
| - locale |
352 |
| - tox -e py37-core -- -a '!nodev' |
353 |
| - no_output_timeout: 20m |
354 |
| - - run: |
355 |
| - name: Commit |
356 |
| - command: | |
357 |
| - cd packages/python/plotly |
358 |
| - sudo mkdir /dist |
359 |
| - git config --global user.email "you@example.com" |
360 |
| - git config --global user.name "Your Name" |
361 |
| - git add -A |
362 |
| - git commit -m "Codegen" |
363 |
| - when: always |
364 |
| - - run: |
365 |
| - name: Build source distribution packages |
366 |
| - command: | |
367 |
| - cd packages/python/plotly |
368 |
| - python setup.py sdist |
369 |
| - sudo cp dist/* /dist |
370 |
| - when: always |
371 |
| - - run: |
372 |
| - name: npm-pack widget |
373 |
| - command: | |
374 |
| - cd packages/javascript/jupyterlab-plotly/ |
375 |
| - npm install webpack |
376 |
| - npm pack |
377 |
| - sudo cp ./jupyterlab-plotly* /dist |
378 |
| - when: always |
379 |
| - - store_artifacts: |
380 |
| - path: packages/python/plotly/dist |
381 |
| - |
382 | 61 | workflows:
|
383 | 62 | version: 2
|
384 | 63 | code_formatting:
|
|
0 commit comments