Skip to content

Commit dd9db8d

Browse files
committed
Fix optional command
1 parent 0a46829 commit dd9db8d

File tree

1 file changed

+32
-168
lines changed

1 file changed

+32
-168
lines changed

.circleci/config.yml

Lines changed: 32 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ commands:
2525
- checkout
2626
- run:
2727
name: Install dependencies
28-
command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_38_optional.txt"
28+
command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_<<parameters.py>>_optional.txt"
2929
- run:
3030
name: Install plotly-geo
3131
command: "cd packages/python/plotly-geo; sudo pip install -e ."
@@ -108,6 +108,36 @@ jobs:
108108
- test_core:
109109
py: "39"
110110

111+
# Optional
112+
python_36_optional:
113+
docker:
114+
- image: circleci/python:3.6-stretch-node-browsers
115+
steps:
116+
- test_optional:
117+
py: "36"
118+
119+
python_37_optional:
120+
docker:
121+
- image: circleci/python:3.7-stretch-node-browsers
122+
steps:
123+
- test_optional:
124+
py: "37"
125+
126+
python_38_optional:
127+
docker:
128+
- image: circleci/python:3.8-buster-node-browsers
129+
steps:
130+
- test_optional:
131+
py: "38"
132+
133+
python_39_optional:
134+
docker:
135+
- image: circleci/python:3.9-buster-node-browsers
136+
steps:
137+
- test_optional:
138+
py: "39"
139+
140+
# Percy
111141
python_37_percy:
112142
docker:
113143
- image: circleci/python:3.7-stretch-node-browsers
@@ -140,171 +170,6 @@ jobs:
140170
npx percy snapshot test/percy/
141171
rm test/percy/*.html
142172
143-
144-
# Optional
145-
python_36_optional:
146-
docker:
147-
- image: circleci/python:3.6-stretch-node-browsers
148-
steps:
149-
- test_optional:
150-
py: "36"
151-
152-
python_37_optional:
153-
docker:
154-
- image: circleci/python:3.7-stretch-node-browsers
155-
steps:
156-
- test_optional:
157-
py: "37"
158-
159-
python_38_optional:
160-
docker:
161-
- image: circleci/python:3.8-buster-node-browsers
162-
steps:
163-
- test_optional:
164-
py: "38"
165-
166-
python_39_optional:
167-
docker:
168-
- image: circleci/python:3.9-buster-node-browsers
169-
steps:
170-
- test_optional:
171-
py: "39"
172-
173-
# python_3.6_optional:
174-
# docker:
175-
# - image: circleci/python:3.6-stretch-node-browsers
176-
#
177-
# steps:
178-
# - checkout
179-
# - run:
180-
# name: Install dependencies
181-
# command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_36_optional.txt"
182-
# - run:
183-
# name: Install plotly-geo
184-
# command: "cd packages/python/plotly-geo; sudo pip install -e ."
185-
# - run:
186-
# name: Test core
187-
# command: "cd packages/python/plotly; pytest plotly/tests/test_core"
188-
# no_output_timeout: 20m
189-
# - run:
190-
# name: Test optional
191-
# command: "cd packages/python/plotly; pytest plotly/tests/test_optional"
192-
# no_output_timeout: 40m
193-
# - run:
194-
# name: Test utils
195-
# command: "cd packages/python/plotly; pytest _plotly_utils/tests/"
196-
# no_output_timeout: 20m
197-
# - run:
198-
# name: Test io
199-
# command: "cd packages/python/plotly; pytest plotly/tests/test_io"
200-
# no_output_timeout: 20m
201-
#
202-
# python_3.7_optional:
203-
# docker:
204-
# - image: circleci/python:3.7-stretch-node-browsers
205-
#
206-
# steps:
207-
# - checkout
208-
# - run:
209-
# name: Install dependencies
210-
# command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_37_optional.txt"
211-
# - run:
212-
# name: Install plotly-geo
213-
# command: "cd packages/python/plotly-geo; sudo pip install -e ."
214-
# - run:
215-
# name: Test core
216-
# command: "cd packages/python/plotly; pytest plotly/tests/test_core"
217-
# no_output_timeout: 20m
218-
# - run:
219-
# name: Test optional
220-
# command: "cd packages/python/plotly; pytest plotly/tests/test_optional"
221-
# no_output_timeout: 40m
222-
# - run:
223-
# name: Test utils
224-
# command: "cd packages/python/plotly; pytest _plotly_utils/tests/"
225-
# no_output_timeout: 20m
226-
# - run:
227-
# name: Test io
228-
# command: "cd packages/python/plotly; pytest plotly/tests/test_io"
229-
# no_output_timeout: 20m
230-
# - run:
231-
# name: Test dependencdies not imported
232-
# command: "cd packages/python/plotly; pytest -x test_init/test_dependencies_not_imported.py"
233-
# - run:
234-
# name: Test lazy imports
235-
# command: "cd packages/python/plotly; pytest -x test_init/test_lazy_imports.py"
236-
#
237-
# python_3.8_optional:
238-
# docker:
239-
# - image: circleci/python:3.8-buster-node-browsers
240-
#
241-
# steps:
242-
# - checkout
243-
# - run:
244-
# name: Install dependencies
245-
# command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_38_optional.txt"
246-
# - run:
247-
# name: Install plotly-geo
248-
# command: "cd packages/python/plotly-geo; sudo pip install -e ."
249-
# - run:
250-
# name: Install orca
251-
# command: |
252-
# sudo npm install [email protected] sudo npm install orca
253-
# sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename
254-
# echo 'export PATH="/home/circleci/project/node_modules/.bin:$PATH"' >> $BASH_ENV
255-
#
256-
## - run:
257-
## name: Test core
258-
## command: "cd packages/python/plotly; pytest plotly/tests/test_core"
259-
## no_output_timeout: 20m
260-
## - run:
261-
## name: Test optional
262-
## command: "cd packages/python/plotly; pytest plotly/tests/test_optional"
263-
## no_output_timeout: 40m
264-
## - run:
265-
## name: Test utils
266-
## command: "cd packages/python/plotly; pytest _plotly_utils/tests/"
267-
## no_output_timeout: 20m
268-
## - run:
269-
## name: Test io
270-
## command: "cd packages/python/plotly; pytest plotly/tests/test_io"
271-
## no_output_timeout: 20m
272-
# - run:
273-
# name: Test orca
274-
# command: "cd packages/python/plotly; pytest plotly/tests/test_orca"
275-
# no_output_timeout: 20m
276-
# - store_artifacts:
277-
# path: packages/python/plotly/plotly/tests/test_orca/images/linux/failed
278-
#
279-
# python_3.9_optional:
280-
# docker:
281-
# - image: circleci/python:3.9-buster-node-browsers
282-
#
283-
# steps:
284-
# - checkout
285-
# - run:
286-
# name: Install dependencies
287-
# command: "cd packages/python; sudo pip install -r ./plotly/test_requirements/requirements_39_optional.txt"
288-
# - run:
289-
# name: Install plotly-geo
290-
# command: "cd packages/python/plotly-geo; sudo pip install -e ."
291-
# - run:
292-
# name: Test core
293-
# command: "cd packages/python/plotly; pytest plotly/tests/test_core"
294-
# no_output_timeout: 20m
295-
# - run:
296-
# name: Test optional
297-
# command: "cd packages/python/plotly; pytest plotly/tests/test_optional"
298-
# no_output_timeout: 40m
299-
# - run:
300-
# name: Test utils
301-
# command: "cd packages/python/plotly; pytest _plotly_utils/tests/"
302-
# no_output_timeout: 20m
303-
# - run:
304-
# name: Test io
305-
# command: "cd packages/python/plotly; pytest plotly/tests/test_io"
306-
# no_output_timeout: 20m
307-
308173
# Chart studio
309174
python_37_chart_studio:
310175
docker:
@@ -519,11 +384,10 @@ workflows:
519384
# - python_37_core
520385
- python_38_core
521386
# - python_39_core
522-
# - python_37_percy
387+
- python_37_percy
523388
- python_36_optional
524389
# - python_37_optional
525390
- python_38_optional
526391
# - python_39_optional
527392
# - python_37_chart_studio
528-
# - python_37_orca
529393
# - build-doc

0 commit comments

Comments
 (0)