Skip to content

Commit 738a1dc

Browse files
committed
Split optional and orca commands
1 parent e1e5421 commit 738a1dc

File tree

1 file changed

+36
-14
lines changed

1 file changed

+36
-14
lines changed

.circleci/config.yml

+36-14
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ commands:
2929
- run:
3030
name: Install plotly-geo
3131
command: "cd packages/python/plotly-geo; sudo pip install -e ."
32-
- run:
33-
name: Install orca
34-
command: |
35-
sudo npm install [email protected] sudo npm install orca
36-
sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename
37-
echo 'export PATH="/home/circleci/project/node_modules/.bin:$PATH"' >> $BASH_ENV
3832
- run:
3933
name: Test core
4034
command: "cd packages/python/plotly; pytest plotly/tests/test_core"
@@ -57,14 +51,33 @@ commands:
5751
- run:
5852
name: Test lazy imports
5953
command: "cd packages/python/plotly; pytest -x test_init/test_lazy_imports.py"
54+
55+
test_orca:
56+
parameters:
57+
py:
58+
default: "36"
59+
type: string
60+
steps:
61+
- checkout
62+
- run:
63+
name: Install dependencies
64+
command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_<<parameters.py>>_optional.txt"
65+
- run:
66+
name: Install plotly-geo
67+
command: "cd packages/python/plotly-geo; sudo pip install -e ."
68+
- run:
69+
name: Install orca
70+
command: |
71+
sudo npm install [email protected] sudo npm install orca
72+
sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename
73+
echo 'export PATH="/home/circleci/project/node_modules/.bin:$PATH"' >> $BASH_ENV
6074
- run:
6175
name: Test orca
6276
command: "cd packages/python/plotly; pytest plotly/tests/test_orca"
6377
no_output_timeout: 20m
6478
- store_artifacts:
6579
path: packages/python/plotly/plotly/tests/test_orca/images/linux/failed
6680

67-
6881
jobs:
6982
check-code-formatting:
7083
docker:
@@ -137,6 +150,14 @@ jobs:
137150
- test_optional:
138151
py: "39"
139152

153+
# Orca
154+
python_38_orca:
155+
docker:
156+
- image: circleci/python:3.8-buster-node-browsers
157+
steps:
158+
- test_orca:
159+
py: "38"
160+
140161
# Percy
141162
python_37_percy:
142163
docker:
@@ -381,14 +402,15 @@ workflows:
381402

382403
build:
383404
jobs:
384-
- python_36_core
385-
# - python_37_core
386-
- python_38_core
387-
# - python_39_core
388-
- python_37_percy
405+
# - python_36_core
406+
- python_37_core
407+
# - python_38_core
408+
- python_39_core
389409
- python_36_optional
390410
# - python_37_optional
391-
- python_38_optional
392-
# - python_39_optional
411+
# - python_38_optional
412+
- python_39_optional
413+
- python_38_orca
414+
- python_37_percy
393415
# - python_37_chart_studio
394416
# - build-doc

0 commit comments

Comments
 (0)