@@ -24,7 +24,7 @@ commands:
24
24
name : Test core
25
25
command : |
26
26
. venv/bin/activate
27
- pytest tests/test_core
27
+ python -m pytest tests/test_core
28
28
no_output_timeout : 20m
29
29
30
30
test_optional :
@@ -39,51 +39,52 @@ commands:
39
39
- run :
40
40
name : Install dependencies
41
41
command : |
42
- python -m venv venv
43
- . venv/bin/activate
44
- pip install -e .
45
- pip install -r ./test_requirements/requirements_<<parameters.py>>_optional.txt
42
+ curl -LsSf https://astral.sh/uv/install.sh | sh
43
+ uv venv
44
+ source .venv/bin/activate
45
+ uv pip install .
46
+ uv pip install -r ./test_requirements/requirements_<<parameters.py>>_optional.txt
46
47
cd js
47
48
npm ci
48
49
npm run build
49
50
- run :
50
51
name : Install plotly-geo
51
52
command : |
52
- . venv/bin/activate
53
- pip install plotly-geo
53
+ source . venv/bin/activate
54
+ uv pip install plotly-geo
54
55
- run :
55
56
name : Test core
56
57
command : |
57
- . venv/bin/activate
58
- pytest tests/test_core
58
+ source . venv/bin/activate
59
+ python -m pytest tests/test_core
59
60
no_output_timeout : 20m
60
61
- run :
61
62
name : Test optional
62
63
command : |
63
- . venv/bin/activate
64
- pytest tests/test_optional
64
+ source . venv/bin/activate
65
+ python -m pytest tests/test_optional
65
66
no_output_timeout : 40m
66
67
- run :
67
68
name : Test utils
68
69
command : |
69
- . venv/bin/activate
70
- pytest tests/test_plotly_utils/
70
+ source . venv/bin/activate
71
+ python -m pytest tests/test_plotly_utils/
71
72
no_output_timeout : 20m
72
73
- run :
73
74
name : Test io
74
75
command : |
75
- . venv/bin/activate
76
- pytest tests/test_io
76
+ source . venv/bin/activate
77
+ python -m pytest tests/test_io
77
78
no_output_timeout : 20m
78
79
- run :
79
- name : Test dependencdies not imported
80
+ name : Test dependencies not imported
80
81
command : |
81
- . venv/bin/activate
82
+ source . venv/bin/activate
82
83
python -m pytest -x test_init/test_dependencies_not_imported.py
83
84
- run :
84
85
name : Test lazy imports
85
86
command : |
86
- . venv/bin/activate
87
+ source . venv/bin/activate
87
88
python -m pytest -x test_init/test_lazy_imports.py
88
89
test_orca :
89
90
parameters :
@@ -392,25 +393,21 @@ jobs:
392
393
- " dc:5f:39:48:00:b4:72:34:e1:d2:c4:e1:1f:d1:e2:ce" # plotlydocbot
393
394
394
395
- checkout
395
-
396
- # Download and cache dependencies
397
- - restore_cache :
398
- key : v2-dependencies-{{ checksum "doc/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}
399
396
- browser-tools/install-chrome
400
397
- browser-tools/install-chromedriver
401
398
402
399
- run :
403
400
name : install dependencies
404
401
command : |
405
402
cd doc
406
- python -m venv venv
407
- . venv/bin/activate
408
- pip uninstall -y plotly
409
- pip install -r requirements.txt
403
+ curl -LsSf https://astral.sh/uv/install.sh | sh
404
+ uv venv
405
+ source .venv/bin/activate
406
+ uv pip install -r requirements.txt
410
407
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
411
- pip uninstall -y plotly
408
+ uv pip uninstall plotly
412
409
cd ..
413
- pip install -e .
410
+ uv pip install -e .
414
411
cd js
415
412
npm ci
416
413
npm run build
@@ -426,17 +423,11 @@ jobs:
426
423
sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2 rename
427
424
echo 'export PATH="/home/circleci/project/node_modules/.bin:$PATH"' >> $BASH_ENV
428
425
429
- - save_cache :
430
- paths :
431
- - ./doc/venv
432
- - ./doc/node_modules
433
- key : v1-dependencies-{{ checksum "doc/requirements.txt" }}-{{ checksum ".circleci/config.yml" }}
434
-
435
426
- run :
436
427
name : make html
437
428
command : |
438
429
cd doc
439
- . venv/bin/activate
430
+ source . venv/bin/activate
440
431
echo ${mapbox_token} > python/.mapbox_token
441
432
make -kj8 || make -kj8
442
433
curl https://raw.githubusercontent.com/plotly/graphing-library-docs/master/front-matter-ci.py > front-matter-ci.py
@@ -485,14 +476,14 @@ jobs:
485
476
name : make doc
486
477
command : |
487
478
cd doc
488
- . venv/bin/activate
479
+ source . venv/bin/activate
489
480
# For the API doc, we need to use the local version of plotly
490
481
# since we are tweaking the source because of
491
482
# graph_objs/graph_objects
492
483
if [ "${CIRCLE_BRANCH}" == "doc-prod" ]; then
493
- pip uninstall -y plotly
484
+ uv pip uninstall plotly
494
485
cd ..
495
- pip install -e .
486
+ uv pip install -e .
496
487
cd doc
497
488
cd apidoc
498
489
make html
0 commit comments