File tree 3 files changed +24
-1
lines changed
3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,21 @@ commands:
92
92
cd packages/python/plotly
93
93
. venv/bin/activate
94
94
pytest -x test_init/test_lazy_imports.py
95
-
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
96
110
test_orca :
97
111
parameters :
98
112
py :
Original file line number Diff line number Diff line change @@ -54,3 +54,4 @@ packages/python/plotly/jupyterlab_plotly/labextension/
54
54
packages /python /plotly /jupyterlab_plotly /nbextension /index.js *
55
55
56
56
test /percy /* .html
57
+ test /percy /pandas2 /* .html
Original file line number Diff line number Diff line change
1
+ import os
2
+
3
+ os .chdir (os .path .dirname (__file__ ))
4
+
5
+ for filename in os .listdir ("pandas2" ):
6
+ with open (filename , encoding = "utf-8" ) as f :
7
+ with open (os .path .join ("pandas2" , filename )) as f2 :
8
+ assert f .read () == f2 .read (), f"Pandas 1/2 difference in { filename } "
You can’t perform that action at this time.
0 commit comments