@@ -92,21 +92,6 @@ commands:
9292 cd packages/python/plotly
9393 . venv/bin/activate
9494 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
11095 test_orca :
11196 parameters :
11297 py :
@@ -245,7 +230,7 @@ jobs:
245230 # Percy
246231 python_37_percy :
247232 docker :
248- - image : cimg/python:3.7 -browsers
233+ - image : cimg/python:3.9 -browsers
249234 environment :
250235 PERCY_ENABLED : True
251236 PERCY_PROJECT : plotly/plotly.py
@@ -267,18 +252,29 @@ jobs:
267252 pip install --upgrade pip wheel
268253 pip install -e ./packages/python/plotly
269254 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
271261 - run :
272- name : Build html figures
262+ name : Build html figures (Pandas 1) and compare
273263 command : |
274264 . 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"
275269 python test/percy/plotly-express.py
270+ python test/percy/compare-pandas.py
276271 - run :
277272 name : Run percy snapshots
278273 command : |
279274 npm i @percy/cli
280275 npx percy snapshot -c test/percy/snapshots.yml test/percy/
281276 rm test/percy/*.html
277+ rm -rf test/percy/pandas2
282278
283279 # Chart studio
284280 python_37_chart_studio :
0 commit comments