@@ -92,7 +92,7 @@ commands:
92
92
jobs :
93
93
check-code-formatting :
94
94
docker :
95
- - image : cimg/python:3.7
95
+ - image : cimg/python:3.11
96
96
97
97
steps :
98
98
- checkout
@@ -101,7 +101,7 @@ jobs:
101
101
command : |
102
102
python -m venv venv
103
103
. venv/bin/activate
104
- pip install black==22.3.0
104
+ pip install black
105
105
- run :
106
106
name : Check formatting with black
107
107
command : |
@@ -150,24 +150,25 @@ jobs:
150
150
- run :
151
151
name : Install requirements
152
152
command : |
153
- python -m venv venv
154
- . venv/bin/activate
155
- pip install -e .
156
- pip install -r test_requirements/requirements_optional.txt
153
+ curl -LsSf https://astral.sh/uv/install.sh | sh
154
+ uv venv
155
+ source .venv/bin/activate
156
+ uv pip install -e .
157
+ uv pip install -r test_requirements/requirements_optional.txt
157
158
158
159
- run :
159
160
name : Build html figures (Pandas 2)
160
161
command : |
161
- . venv/bin/activate
162
+ source . venv/bin/activate
162
163
python tests/percy/plotly-express.py
163
164
- run :
164
165
name : Build html figures (Pandas 1) and compare
165
166
command : |
166
- . venv/bin/activate
167
+ source . venv/bin/activate
167
168
mkdir tests/percy/pandas2
168
169
mv tests/percy/*.html tests/percy/pandas2/
169
170
# 1.1 is the earliest minor with Py3.9 wheels
170
- pip install "pandas==1.1.5"
171
+ uv pip install "pandas==1.1.5"
171
172
python tests/percy/plotly-express.py
172
173
python tests/percy/compare-pandas.py
173
174
rm -rf tests/percy/pandas2
@@ -190,20 +191,20 @@ jobs:
190
191
- run :
191
192
name : Install dependencies
192
193
command : |
193
- python -m venv venv
194
- . venv/bin/activate
195
- pip install -e .
196
- pip install -r ./test_requirements/requirements_core.txt black inflect
197
- pip install jupyterlab
194
+ curl -LsSf https://astral.sh/uv/install.sh | sh
195
+ uv venv
196
+ source .venv/bin/activate
197
+ uv pip install -e .
198
+ uv pip install -r ./test_requirements/requirements_core.txt black inflect jupyterlab
198
199
- run :
199
200
name : Update plotly.js to dev
200
201
command : |
201
- . venv/bin/activate
202
+ source . venv/bin/activate
202
203
python commands.py updateplotlyjsdev
203
204
- run :
204
205
name : Test core
205
206
command : |
206
- . venv/bin/activate
207
+ source . venv/bin/activate
207
208
locale
208
209
pytest -k 'not nodev' tests/test_core
209
210
no_output_timeout : 20m
@@ -218,8 +219,8 @@ jobs:
218
219
- run :
219
220
name : Build source distribution packages
220
221
command : |
221
- . venv/bin/activate
222
- pip install build
222
+ source . venv/bin/activate
223
+ uv pip install build
223
224
python -m build --sdist --wheel -o dist
224
225
when : always
225
226
- store_artifacts :
0 commit comments