8000 Split off docs from optional since it has orca dependency · plotly/plotly.py@23de6a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 23de6a2

Browse files
committed
Split off docs from optional since it has orca dependency
1 parent 43e2905 commit 23de6a2

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

.circleci/config.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ commands:
5151
# - run:
5252
# name: Test lazy imports
5353
# command: "cd packages/python/plotly; pytest -x test_init/test_lazy_imports.py"
54-
- run:
55-
name: Test build docs
56-
command: |
57-
cd doc
58-
echo ${mapbox_token} > python/.mapbox_token
59-
make -kj8
6054

6155
test_orca:
6256
parameters:
@@ -84,6 +78,32 @@ commands:
8478
- store_artifacts:
8579
path: packages/python/plotly/plotly/tests/test_orca/images/linux/failed
8680

81+
test_docs:
82+
parameters:
83+
py:
84+
default: "36"
85+
type: string
86+
steps:
87+
- checkout
88+
- run:
89+
name: Install dependencies
90+
command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_<<parameters.py>>_optional.txt"
91+
- run:
92+
name: Install plotly-geo
93+
command: "cd packages/python/plotly-geo; sudo pip install -e ."
94+
- run:
95+
name: Install orca
96+
command: |
97+
sudo npm install electron@1.8.4 sudo npm install orca
98+
sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename
99+
echo 'export PATH="/home/circleci/project/node_modules/.bin:$PATH"' >> $BASH_ENV
100+
- run:
101+
name: Test build docs
102+
command: |
103+
cd doc
104+
echo ${mapbox_token} > python/.mapbox_token
105+
make -kj8
106+
87107
jobs:
88108
check-code-formatting:
89109
docker:
@@ -164,6 +184,14 @@ jobs:
164184
- test_orca:
165185
py: "38"
166186

187+
# Docs
188+
python_38_docs:
189+
docker:
190+
- image: circleci/python:3.8-buster-node-browsers
191+
steps:
192+
- test_docs:
193+
py: "38"
194+
167195
# Percy
168196
python_37_percy:
169197
docker:
@@ -415,6 +443,7 @@ workflows:
415443
# - python_36_optional
416444
# - python_37_optional
417445
# - python_38_optional
446+
- python_38_docs
418447
- python_39_optional
419448
# - python_38_orca
420449
# - python_37_percy

0 commit comments

Comments
 (0)
0