Skip to content

Commit 73a0a57

Browse files
committed
change order of ci jobs
1 parent 8e97700 commit 73a0a57

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

.circleci/config.yml

+32-31
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,38 @@ jobs:
7979
command: 'cd packages/python/plotly; tox -e py37-core'
8080
no_output_timeout: 20m
8181

82+
python-3.7-percy:
83+
docker:
84+
- image: circleci/python:3.7-stretch-node-browsers
85+
86+
environment:
87+
PERCY_ENABLED: True
88+
PERCY_PROJECT: plotly/plotly.py
89+
90+
steps:
91+
- checkout
92+
- run:
93+
name: Inject Percy Environment variables
94+
command: |
95+
echo 'export PERCY_TOKEN="$PERCY_PYTHON_TOKEN_V0"' >> $BASH_ENV
96+
97+
- run:
98+
name: Install requirements
99+
command: |
100+
pip install -e ./packages/python/plotly
101+
102+
- run:
103+
name: Build html figures
104+
command: |
105+
python tests/percy/plotly.express.py
106+
107+
- run:
108+
name: Run percy snapshots
109+
command: |
110+
npx percy snapshot tests/percy/
111+
rm tests/percy/*.html
112+
113+
82114
# Optional
83115
python-2.7-optional:
84116
docker:
@@ -160,37 +192,6 @@ jobs:
160192
command: 'cd packages/python/plotly; tox -e py37-optional'
161193
no_output_timeout: 20m
162194

163-
python-3.7-percy:
164-
docker:
165-
- image: circleci/python:3.7-stretch-node-browsers
166-
167-
environment:
168-
PERCY_ENABLED: True
169-
PERCY_PROJECT: plotly/plotly.py
170-
171-
steps:
172-
- checkout
173-
- run:
174-
name: Inject Percy Environment variables
175-
command: |
176-
echo 'export PERCY_TOKEN="$PERCY_PYTHON_TOKEN_V0"' >> $BASH_ENV
177-
178-
- run:
179-
name: Install requirements
180-
command: |
181-
pip install -e ./packages/python/plotly
182-
183-
- run:
184-
name: Build html figures
185-
command: |
186-
python tests/percy/plotly.express.py
187-
188-
- run:
189-
name: Run percy snapshots
190-
command: |
191-
npx percy snapshot tests/percy/
192-
rm tests/percy/*.html
193-
194195
# Plot.ly
195196
python-2.7-plot_ly:
196197
docker:

0 commit comments

Comments
 (0)