Skip to content

Commit efd4047

Browse files
committed
move px pandas2 test to percy test, and update it to Py3.9
1 parent aedd67a commit efd4047

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

Diff for: .circleci/config.yml

+14-18
Original file line numberDiff line numberDiff line change
@@ -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:

Diff for: packages/python/plotly/test_requirements/requirements_39_pandas_2_optional.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
requests==2.25.1
22
tenacity==6.2.0
3-
pandas==2.0.0
3+
pandas==2.0.1
44
numpy==1.20.3
55
xarray==0.17.0
66
statsmodels

0 commit comments

Comments
 (0)