@@ -3,11 +3,12 @@ version: 2.1
3
3
orbs :
4
4
5
5
6
+ browser-tools :
circleci/[email protected]
6
7
7
8
jobs :
8
9
artifacts :
9
10
docker :
10
- - image : circleci /python:3.9.2-buster-node-browsers
11
+ - image : cimg /python:3.9.9
11
12
auth :
12
13
username : dashautomation
13
14
password : $DASH_PAT_DOCKERHUB
29
30
install-dependencies-39 : &install-dependencies
30
31
working_directory : ~/dash
31
32
docker :
32
- - image : circleci /python:3.9.2-buster- node-browsers
33
+ - image : cimg /python:3.9.9- node
33
34
auth :
34
35
username : dashautomation
35
36
password : $DASH_PAT_DOCKERHUB
70
71
install-dependencies-36 :
71
72
<< : *install-dependencies
72
73
docker :
73
- - image : circleci /python:3.6.13-stretch- node-browsers
74
+ - image : cimg /python:3.6.15- node
74
75
auth :
75
76
username : dashautomation
76
77
password : $DASH_PAT_DOCKERHUB
82
83
lint-unit-39 : &lint-unit
83
84
working_directory : ~/dash
84
85
docker :
85
- - image : circleci /python:3.9.4 -node-browsers
86
+ - image : cimg /python:3.9.9 -node
86
87
auth :
87
88
username : dashautomation
88
89
password : $DASH_PAT_DOCKERHUB
@@ -121,7 +122,7 @@ jobs:
121
122
lint-unit-36 :
122
123
<< : *lint-unit
123
124
docker :
124
- - image : circleci /python:3.6.13-stretch- node-browsers
125
+ - image : cimg /python:3.6.15- node
125
126
auth :
126
127
username : dashautomation
127
128
password : $DASH_PAT_DOCKERHUB
@@ -150,7 +151,7 @@ jobs:
150
151
test-39 : &test
151
152
working_directory : ~/dash
152
153
docker :
153
- - image : circleci /python:3.9.2-buster -node-browsers
154
+ - image : cimg /python:3.9.9 -node-browsers
154
155
auth :
155
156
username : dashautomation
156
157
password : $DASH_PAT_DOCKERHUB
@@ -160,14 +161,15 @@ jobs:
160
161
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD : True
161
162
PYVERSION : python39
162
163
REDIS_URL : redis://localhost:6379
163
- - image : circleci /redis
164
+ - image : cimg /redis
164
165
parallelism : 3
165
166
steps :
166
167
- checkout
167
168
- run : echo $PYVERSION > ver.txt
168
169
- run : echo requires-*.txt > requires-all.txt
169
170
- restore_cache :
170
171
key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}
172
+ - browser-tools/install-browser-tools
171
173
- attach_workspace :
172
174
at : ~/dash
173
175
- run :
@@ -192,7 +194,7 @@ jobs:
192
194
test-36 :
193
195
<< : *test
194
196
docker :
195
- - image : circleci /python:3.6.13-stretch-node -browsers
197
+ - image : cimg /python:3.6.15 -browsers
196
198
auth :
197
199
username : dashautomation
198
200
password : $DASH_PAT_DOCKERHUB
@@ -201,12 +203,12 @@ jobs:
201
203
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD : True
202
204
PYVERSION : python36
203
205
REDIS_URL : redis://localhost:6379
204
- - image : circleci /redis
206
+ - image : cimg /redis
205
207
206
208
dcc-lint-unit-39 : &dcc-lint-unit
207
209
working_directory : ~/dash/components/dash-core-components
208
210
docker :
209
- - image : circleci /python:3.9.2-buster- node-browsers
211
+ - image : cimg /python:3.9.9- node
210
212
auth :
211
213
username : dashautomation
212
214
password : $DASH_PAT_DOCKERHUB
@@ -244,7 +246,7 @@ jobs:
244
246
dcc-lint-unit-36 :
245
247
<< : *dcc-lint-unit
246
248
docker :
247
- - image : circleci /python:3.6.13-stretch- node-browsers
249
+ - image : cimg /python:3.6.15- node
248
250
auth :
249
251
username : dashautomation
250
252
password : $DASH_PAT_DOCKERHUB
@@ -255,7 +257,7 @@ jobs:
255
257
dcc-build-dash-39 : &dcc-build-dash
256
258
working_directory : ~/dash/components/dash-core-components
257
259
docker :
258
- - image : circleci /python:3.9.2-buster- node-browsers
260
+ - image : cimg /python:3.9.9- node
259
261
auth :
260
262
username : dashautomation
261
263
password : $DASH_PAT_DOCKERHUB
@@ -293,7 +295,7 @@ jobs:
293
295
dcc-build-dash-36 :
294
296
<< : *dcc-build-dash
295
297
docker :
296
- - image : circleci /python:3.6.13-stretch- node-browsers
298
+ - image : cimg /python:3.6.15- node
297
299
auth :
298
300
username : dashautomation
299
301
password : $DASH_PAT_DOCKERHUB
@@ -304,7 +306,7 @@ jobs:
304
306
dcc-test-39 : &dcc-test
305
307
working_directory : ~/dash/components/dash-core-components
306
308
docker :
307
- - image : circleci /python:3.9.2-buster-node -browsers
309
+ - image : cimg /python:3.9.9 -browsers
308
310
auth :
309
311
username : dashautomation
310
312
password : $DASH_PAT_DOCKERHUB
@@ -320,6 +322,7 @@ jobs:
320
322
- run : echo requires-*.txt > requires-all.txt
321
323
- restore_cache :
322
324
key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}-{{ checksum "dev-requirements.txt" }}
325
+ - browser-tools/install-browser-tools
323
326
- attach_workspace :
324
327
at : ~/dash/components/dash-core-components
325
328
- run :
@@ -343,7 +346,7 @@ jobs:
343
346
dcc-test-36 :
344
347
<< : *dcc-test
345
348
docker :
346
- - image : circleci /python:3.6.13-stretch-node -browsers
349
+ - image : cimg /python:3.6.15 -browsers
347
350
auth :
348
351
username : dashautomation
349
352
password : $DASH_PAT_DOCKERHUB
@@ -354,7 +357,7 @@ jobs:
354
357
html-python-39 : &html-test
355
358
working_directory : ~/dash/components/dash-html-components
356
359
docker :
357
- - image : circleci /python:3.9.2-buster-node -browsers
360
+ - image : cimg /python:3.9.9 -browsers
358
361
auth :
359
362
username : dashautomation
360
363
password : $DASH_PAT_DOCKERHUB
@@ -366,10 +369,9 @@ jobs:
366
369
steps :
367
370
- checkout :
368
371
path : ~/dash
369
-
372
+ - browser-tools/install-browser-tools
370
373
- attach_workspace :
371
374
at : ~/dash/components/dash-html-components
372
-
373
375
- run :
374
376
name : 🏗️ Install dependencies
375
377
command : |
@@ -379,22 +381,19 @@ jobs:
379
381
pip install dash-package/dash-package.tar.gz[ci,dev,testing]
380
382
pip install -r dev-requirements.txt
381
383
npm ci
382
-
383
384
- run :
384
385
name : 🧰 Build
385
386
command : |
386
387
. venv/bin/activate
387
388
python --version
388
389
npm run clean
389
390
npm run build
390
-
391
391
- run :
392
392
name : 🧪 Run tests
393
393
command : |
394
394
. venv/bin/activate
395
395
python --version
396
396
npm run test
397
-
398
397
- store_artifacts :
399
398
path : ~/dash/components/dash-html-components/test-reports
400
399
- store_test_results :
@@ -405,7 +404,7 @@ jobs:
405
404
html-python-36 :
406
405
<< : *html-test
407
406
docker :
408
- - image : circleci /python:3.6.13-stretch-node -browsers
407
+ - image : cimg /python:3.6.15 -browsers
409
408
auth :
410
409
username : dashautomation
411
410
password : $DASH_PAT_DOCKERHUB
@@ -416,7 +415,7 @@ jobs:
416
415
table-server-test :
417
416
working_directory : ~/dash/components/dash-table
418
417
docker :
419
- - image : circleci /python:3.9.2-buster-node -browsers
418
+ - image : cimg /python:3.9.9 -browsers
420
419
environment :
421
420
PERCY_ENABLE : 1
422
421
PERCY_PARALLEL_TOTAL : -1
@@ -432,6 +431,7 @@ jobs:
432
431
echo 'export PERCY_TOKEN="$PERCY_TOKEN"' >> $BASH_ENV
433
432
- restore_cache :
434
433
key : dep-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}
434
+ - browser-tools/install-browser-tools
435
435
- attach_workspace :
436
436
at : ~/dash/components/dash-table
437
437
- run :
@@ -471,7 +471,7 @@ jobs:
471
471
table-unit-test :
472
472
working_directory : ~/dash/components/dash-table
473
473
docker :
474
- - image : circleci /python:3.9.2-buster-node -browsers
474
+ - image : cimg /python:3.9.9 -browsers
475
475
environment :
476
476
PERCY_ENABLE : 0
477
477
steps :
@@ -486,6 +486,7 @@ jobs:
486
486
key : dep-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}-{{ checksum ".circleci/config.yml" }}
487
487
paths :
488
488
- node_modules
489
+ - browser-tools/install-browser-tools
489
490
- attach_workspace :
490
491
at : ~/dash/components/dash-table
491
492
- run :
@@ -504,7 +505,7 @@ jobs:
504
505
table-visual-test :
505
506
working_directory : ~/dash/components/dash-table
506
507
docker :
507
- - image : circleci /node:14 -browsers
508
+ - image : cimg /node:16.13 -browsers
508
509
environment :
509
510
PERCY_TOKEN : $PERCY_TOKEN_TABLE
510
511
@@ -513,6 +514,7 @@ jobs:
513
514
path : ~/dash
514
515
- restore_cache :
515
516
key : dep-{{ .Branch }}-{{ checksum "package-lock.json" }}-{{ checksum "package.json" }}
517
+ - browser-tools/install-browser-tools
516
518
- run :
517
519
name : Install package.json
518
520
command : npm ci
@@ -532,7 +534,7 @@ jobs:
532
534
table-node :
533
535
working_directory : ~/dash/components/dash-table
534
536
docker :
535
- - image : circleci /python:3.9.2 -node
537
+ - image : cimg /python:3.9.9 -node
536
538
environment :
537
539
PERCY_ENABLE : 0
538
540
steps :
0 commit comments