@@ -17,15 +17,16 @@ jobs:
17
17
steps :
18
18
- checkout
19
19
- run : echo $PYVERSION > ver.txt
20
+ - run : echo requires-*.txt > requires-all.txt
20
21
- restore_cache :
21
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing .txt" }}
22
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all .txt" }}
22
23
- attach_workspace :
23
24
at : ~/dash
24
25
- store_artifacts :
25
26
path : ~/dash/dash-main
26
27
destination : /tmp/dash-main
27
28
28
- install-dependencies :
29
+ install-dependencies-39 : &install-dependencies
29
30
working_directory : ~/dash
30
31
docker :
31
32
- image : circleci/python:3.9.2-buster-node-browsers
@@ -39,24 +40,45 @@ jobs:
39
40
40
41
steps :
41
42
- checkout
43
+ - run : echo $PYVERSION > ver.txt
44
+ - run : echo requires-*.txt > requires-all.txt
45
+ - restore_cache :
46
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}
42
47
- run :
43
48
name : 🏁 Build Component Packages & Update Dependencies/Artifacts
44
49
command : |
45
50
python -m venv venv && . venv/bin/activate
46
51
pip install --upgrade pip wheel
47
52
set -eo pipefail
48
- pip install -e .[testing,dev] --progress-bar off && pip list | grep dash
53
+ pip install -e .[ci,dev,testing,celery,diskcache] --progress-bar off
54
+ pip list | grep dash
49
55
npm i
50
56
npm run build
51
57
python setup.py sdist
52
58
mkdir dash-package && cp dist/*.tar.gz dash-package/dash-package.tar.gz
53
59
ls -la dash-package
54
60
no_output_timeout : 30m
61
+ - save_cache :
62
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}
63
+ paths :
64
+ - venv
55
65
- persist_to_workspace :
56
66
root : ~/dash
57
67
paths :
58
68
- dash-package
59
69
70
+ install-dependencies-36 :
71
+ << : *install-dependencies
72
+ docker :
73
+ - image : circleci/python:3.6.13-stretch-node-browsers
74
+ auth :
75
+ username : dashautomation
76
+ password : $DASH_PAT_DOCKERHUB
77
+ environment :
78
+ PYLINTRC : .pylintrc
79
+ PYVERSION : python36
80
+ PERCY_ENABLE : 0
81
+
60
82
lint-unit-39 : &lint-unit
61
83
working_directory : ~/dash
62
84
docker :
@@ -72,18 +94,15 @@ jobs:
72
94
steps :
73
95
- checkout
74
96
- run : echo $PYVERSION > ver.txt
97
+ - run : echo requires-*.txt > requires-all.txt
75
98
- restore_cache :
76
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing .txt" }}
99
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all .txt" }}
77
100
- run :
78
101
name : ️️🏗️ pip dev requirements
79
102
command : |
80
103
python -m venv venv && . venv/bin/activate
81
104
pip install --upgrade pip wheel
82
- pip install -e . --no-cache-dir -r requires-install.txt -r requires-dev.txt -r requires-testing.txt --progress-bar off
83
- - save_cache :
84
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing.txt" }}
85
- paths :
86
- - venv
105
+ pip install -e .[ci,dev,testing] --no-cache-dir --progress-bar off
87
106
- run :
88
107
name : 🌸 Python & JS Lint
89
108
command : |
@@ -146,18 +165,17 @@ jobs:
146
165
steps :
147
166
- checkout
148
167
- run : echo $PYVERSION > ver.txt
168
+ - run : echo requires-*.txt > requires-all.txt
149
169
- restore_cache :
150
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-dev.txt" }}-{{ checksum "requires-install.txt" }}-{{ checksum "requires-testing .txt" }}
170
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all .txt" }}
151
171
- attach_workspace :
152
172
at : ~/dash
153
173
- run :
154
174
name : ️️🏗️ Install packages
155
175
command : |
156
176
. venv/bin/activate
157
177
npm install --production
158
- pip install --no-cache-dir --upgrade --ignore-installed dash-package/dash-package.tar.gz --progress-bar off
159
- pip install -r requires-install.txt -r requires-dev.txt -r requires-testing.txt --progress-bar off
160
- sed -i '/dash/d' requires-install.txt
178
+ pip install --no-cache-dir --upgrade --ignore-installed dash-package/dash-package.tar.gz[ci,dev,testing,celery,diskcache] --progress-bar off
161
179
pip list | grep dash
162
180
- run :
163
181
name : 🧪 Run Integration Tests
@@ -198,20 +216,21 @@ jobs:
198
216
steps :
199
217
- checkout :
200
218
path : ~/dash
201
- - run : echo $PYTHON_VERSION > ver.txt
219
+ - run : echo $PYVERSION > ver.txt
220
+ - run : echo requires-*.txt > requires-all.txt
202
221
- restore_cache :
203
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
222
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}-{{ checksum " dev-requirements.txt" }}
204
223
- attach_workspace :
205
224
at : ~/dash/components/dash-core-components
206
225
- run :
207
226
name : 🐍 pip dev requirements
208
227
command : |
209
228
python -m venv venv && . venv/bin/activate
210
229
pip install --upgrade pip wheel
211
- pip install dash-package/dash-package.tar.gz[dev,testing]
230
+ pip install dash-package/dash-package.tar.gz[ci, dev,testing]
212
231
pip install --progress-bar off --no-cache-dir -r dev-requirements.txt
213
232
- save_cache :
214
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
233
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}-{{ checksum " dev-requirements.txt" }}
215
234
paths :
216
235
- venv
217
236
- run :
@@ -247,19 +266,16 @@ jobs:
247
266
- checkout :
248
267
path : ~/dash
249
268
- run : echo $PYTHON_VERSION > ver.txt
269
+ - run : echo requires-*.txt > requires-all.txt
250
270
- restore_cache :
251
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
271
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}-{{ checksum " dev-requirements.txt" }}
252
272
- run :
253
273
name : 🐍 pip dev requirements
254
274
command : |
255
275
python -m venv venv && . venv/bin/activate
256
276
pip install --upgrade pip wheel
257
277
set -eo pipefail
258
278
pip install --progress-bar off --no-cache-dir -r dev-requirements.txt
259
- - save_cache :
260
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
261
- paths :
262
- - venv
263
279
- attach_workspace :
264
280
at : ~/dash/components/dash-core-components
265
281
- run :
@@ -268,7 +284,11 @@ jobs:
268
284
. venv/bin/activate
269
285
set -eo pipefail
270
286
# build main dash & renderer
271
- pip install dash-package/dash-package.tar.gz[dev,testing]
287
+ pip install dash-package/dash-package.tar.gz[ci,dev,testing]
288
+ - save_cache :
289
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}-{{ checksum "dev-requirements.txt" }}
290
+ paths :
291
+ - venv
272
292
273
293
dcc-build-dash-36 :
274
294
<< : *dcc-build-dash
@@ -297,8 +317,9 @@ jobs:
297
317
- checkout :
298
318
path : ~/dash
299
319
- run : echo $PYTHON_VERSION > ver.txt
320
+ - run : echo requires-*.txt > requires-all.txt
300
321
- restore_cache :
301
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
322
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}-{{ checksum " dev-requirements.txt" }}
302
323
- attach_workspace :
303
324
at : ~/dash/components/dash-core-components
304
325
- run :
@@ -307,7 +328,7 @@ jobs:
307
328
. venv/bin/activate && rm -rf dash_core_components && ls -la
308
329
pip install --upgrade pip wheel
309
330
set -eo pipefail
310
- pip install dash-package/dash-package.tar.gz[dev,testing]
331
+ pip install dash-package/dash-package.tar.gz[ci, dev,testing]
311
332
pip list | grep dash | xargs pip show
312
333
echo $(python -V 2>&1) | grep 3.
313
334
TESTFILES=$(circleci tests glob "tests/integration/**/test_*.py" | circleci tests split --split-by=timings)
@@ -355,7 +376,7 @@ jobs:
355
376
python -m venv venv
356
377
. venv/bin/activate
357
378
pip install --upgrade pip wheel
358
- pip install dash-package/dash-package.tar.gz[dev,testing]
379
+ pip install dash-package/dash-package.tar.gz[ci, dev,testing]
359
380
pip install -r dev-requirements.txt
360
381
npm ci
361
382
@@ -427,7 +448,7 @@ jobs:
427
448
. venv/bin/activate
428
449
pip install -r dev-requirements.txt --quiet
429
450
pip install -r python-requirements.txt --quiet
430
- pip install dash-package/dash-package.tar.gz[dev,testing]
451
+ pip install dash-package/dash-package.tar.gz[ci, dev,testing]
431
452
- run :
432
453
name : Build
433
454
command : |
@@ -473,7 +494,7 @@ jobs:
473
494
python -m venv venv
474
495
. venv/bin/activate
475
496
pip install -r dev-requirements.txt --quiet
476
- pip install dash-package/dash-package.tar.gz[dev,testing]
497
+ pip install dash-package/dash-package.tar.gz[ci, dev,testing]
477
498
- run :
478
499
name : Run tests
479
500
command : |
@@ -536,7 +557,7 @@ jobs:
536
557
command : |
537
558
. venv/bin/activate
538
559
pip install -r dev-requirements.txt --quiet
539
- pip install dash-package/dash-package.tar.gz[dev,testing]
560
+ pip install dash-package/dash-package.tar.gz[ci, dev,testing]
540
561
541
562
- run :
542
563
name : Run eslint
@@ -549,59 +570,64 @@ workflows:
549
570
version : 2
550
571
tests :
551
572
jobs :
552
- - install-dependencies
573
+ - install-dependencies-39
574
+ - install-dependencies-36
553
575
554
576
- build-windows-39
555
577
556
- - lint-unit-39
557
- - lint-unit-36
578
+ - lint-unit-39 :
579
+ requires :
580
+ - install-dependencies-39
581
+ - lint-unit-36 :
582
+ requires :
583
+ - install-dependencies-36
558
584
559
585
- test-39 :
560
586
requires :
561
- - install-dependencies
587
+ - install-dependencies-39
562
588
- test-36 :
563
589
requires :
564
- - install-dependencies
590
+ - install-dependencies-36
565
591
566
592
- dcc-lint-unit-39 :
567
593
requires :
568
- - install-dependencies
594
+ - install-dependencies-39
569
595
- dcc-lint-unit-36 :
570
596
requires :
571
- - install-dependencies
597
+ - install-dependencies-36
572
598
573
599
- dcc-build-dash-39 :
574
600
requires :
575
- - install-dependencies
601
+ - install-dependencies-39
576
602
- dcc-test-39 :
577
603
requires :
578
- - install-dependencies
604
+ - install-dependencies-39
579
605
- dcc-build-dash-39
580
606
- dcc-build-dash-36 :
581
607
requires :
582
- - install-dependencies
608
+ - install-dependencies-36
583
609
- dcc-test-36 :
584
610
requires :
585
- - install-dependencies
611
+ - install-dependencies-36
586
612
- dcc-build-dash-36
587
613
588
614
- html-python-39 :
589
615
requires :
590
- - install-dependencies
616
+ - install-dependencies-39
591
617
- html-python-36 :
592
618
requires :
593
- - install-dependencies
619
+ - install-dependencies-36
594
620
595
621
- table-node :
596
622
requires :
597
- - install-dependencies
623
+ - install-dependencies-39
598
624
- table-unit-test :
599
625
requires :
600
- - install-dependencies
626
+ - install-dependencies-39
601
627
- table-visual-test
602
628
- table-server-test :
603
629
requires :
604
- - install-dependencies
630
+ - install-dependencies-39
605
631
606
632
- percy/finalize_all :
607
633
requires :
0 commit comments