Skip to content

Commit 1a195a7

Browse files
committed
add ci job to test with kaleido v1
1 parent 8054331 commit 1a195a7

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.circleci/config.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,35 @@ commands:
117117
source .venv/bin/activate
118118
python -m pytest -x test_init/test_lazy_imports.py
119119
120+
test_io_kaleido_v1:
121+
steps:
122+
- checkout
123+
- browser-tools/install-chrome
124+
- browser-tools/install-chromedriver
125+
- run:
126+
name: Install dependencies
127+
command: |
128+
curl -LsSf https://astral.sh/uv/install.sh | sh
129+
uv venv
130+
source .venv/bin/activate
131+
uv pip install .
132+
uv pip install -r ./test_requirements/requirements_optional.txt
133+
# Install Kaleido v1 instead of the default version
134+
uv pip uninstall -y kaleido
135+
uv pip install 'git+https://github.com/plotly/[email protected]#subdirectory=src/py'
136+
- run:
137+
name: List installed packages and python version
138+
command: |
139+
source .venv/bin/activate
140+
uv pip list
141+
python --version
142+
- run:
143+
name: Test plotly.io with Kaleido v1
144+
command: |
145+
source .venv/bin/activate
146+
python -m pytest tests/test_io
147+
no_output_timeout: 20m
148+
120149
jobs:
121150
check-code-formatting:
122151
docker:
@@ -166,6 +195,17 @@ jobs:
166195
pandas_version: <<parameters.pandas_version>>
167196
numpy_version: <<parameters.numpy_version>>
168197

198+
test_kaleido_v1:
199+
parameters:
200+
python_version:
201+
default: "3.12"
202+
type: string
203+
executor:
204+
name: docker-container
205+
python_version: <<parameters.python_version>>
206+
steps:
207+
- test_io_kaleido_v1
208+
169209
# Percy
170210
python_311_percy:
171211
docker:
@@ -448,5 +488,10 @@ workflows:
448488
python_version: "3.9"
449489
pandas_version: "1.2.4"
450490
numpy_version: "1.26.4"
491+
- test_kaleido_v1:
492+
matrix:
493+
parameters:
494+
python_version:
495+
- "3.12"
451496
- python_311_percy
452497
- build-doc

0 commit comments

Comments
 (0)