@@ -92,21 +92,6 @@ commands:
92
92
cd packages/python/plotly
93
93
. venv/bin/activate
94
94
pytest -x test_init/test_lazy_imports.py
95
- - run :
96
- name : Test PX if Pandas 2
97
- command : |
98
- if [ "<<parameters.py>>" == "39_pandas_2" ]; then
99
- . packages/python/plotly/venv/bin/activate
100
- pip install -e ./packages/python/plotly
101
- pip install -e ./packages/python/plotly-geo
102
- python test/percy/plotly-express.py
103
- mkdir test/percy/pandas2
104
- mv test/percy/*.html test/percy/pandas2/
105
- # 1.1 is the earliest minor with Py3.9 wheels
106
- pip install "pandas==1.1.5"
107
- python test/percy/plotly-express.py
108
- python test/percy/compare-pandas.py
109
- fi
110
95
test_orca :
111
96
parameters :
112
97
py :
@@ -245,7 +230,7 @@ jobs:
245
230
# Percy
246
231
python_37_percy :
247
232
docker :
248
- - image : cimg/python:3.7 -browsers
233
+ - image : cimg/python:3.9 -browsers
249
234
environment :
250
235
PERCY_ENABLED : True
251
236
PERCY_PROJECT : plotly/plotly.py
@@ -267,18 +252,29 @@ jobs:
267
252
pip install --upgrade pip wheel
268
253
pip install -e ./packages/python/plotly
269
254
pip install -e ./packages/python/plotly-geo
270
- pip install -r ./packages/python/plotly/test_requirements/requirements_37_optional.txt
255
+ pip install -r ./packages/python/plotly/test_requirements/requirements_39_pandas_2_optional.txt
256
+ - run :
257
+ name : Build html figures (Pandas 2)
258
+ command : |
259
+ . venv/bin/activate
260
+ python test/percy/plotly-express.py
271
261
- run :
272
- name : Build html figures
262
+ name : Build html figures (Pandas 1) and compare
273
263
command : |
274
264
. venv/bin/activate
265
+ mkdir test/percy/pandas2
266
+ mv test/percy/*.html test/percy/pandas2/
267
+ # 1.1 is the earliest minor with Py3.9 wheels
268
+ pip install "pandas==1.1.5"
275
269
python test/percy/plotly-express.py
270
+ python test/percy/compare-pandas.py
276
271
- run :
277
272
name : Run percy snapshots
278
273
command : |
279
274
npm i @percy/cli
280
275
npx percy snapshot -c test/percy/snapshots.yml test/percy/
281
276
rm test/percy/*.html
277
+ rm -rf test/percy/pandas2
282
278
283
279
# Chart studio
284
280
python_37_chart_studio :
0 commit comments