5
5
docker :
6
6
- image : percyio/agent
7
7
auth :
8
- username : dashautomation
9
- password : $DASH_PAT_DOCKERHUB
8
+ username : dashautomation
9
+ password : $DASH_PAT_DOCKERHUB
10
10
steps :
11
11
- run : percy finalize --all
12
12
13
13
node :
14
+ resource_class : medium+
14
15
docker :
15
16
- image : circleci/python:3.7.5-stretch-node
16
17
auth :
17
- username : dashautomation
18
- password : $DASH_PAT_DOCKERHUB
18
+ username : dashautomation
19
+ password : $DASH_PAT_DOCKERHUB
19
20
steps :
20
21
- checkout
21
22
- run : echo $PYTHON_VERSION > ver.txt
22
23
- restore_cache :
23
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
24
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
24
25
- run :
25
- name : 🐍 pip dev requirements
26
- command : |
27
- sudo pip install virtualenv --upgrade
28
- python -m venv venv || virtualenv venv && . venv/bin/activate
29
- python -m pip install --upgrade pip
30
- pip install --progress-bar off --no-cache-dir -r dev-requirements.txt
26
+ name : 🐍 pip dev requirements
27
+ command : |
28
+ sudo pip install virtualenv --upgrade
29
+ python -m venv venv || virtualenv venv && . venv/bin/activate
30
+ python -m pip install --upgrade pip
31
+ pip install --progress-bar off --no-cache-dir -r dev-requirements.txt
31
32
- save_cache :
32
- key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
33
- paths :
34
- - venv
33
+ key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
34
+ paths :
35
+ - venv
35
36
- run :
36
- name : Check current version of node
37
- command : node -v
37
+ name : Check current version of node
38
+ command : node -v
38
39
- restore_cache :
39
- key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
40
+ key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
40
41
41
42
- run :
42
- name : Install package.json
43
- command : npm ci
43
+ name : Install package.json
44
+ command : npm ci
44
45
45
46
- save_cache :
46
- key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
47
- paths :
48
- - node_modules
47
+ key : deps1-{{ .Branch }}-{{ checksum "package-lock.json" }}
48
+ paths :
49
+ - node_modules
49
50
50
51
- run :
51
- name : Run eslint
52
- command : ./node_modules/.bin/eslint src
53
- when : always
52
+ name : Run eslint
53
+ command : ./node_modules/.bin/eslint src
54
+ when : always
54
55
55
56
- run :
56
- name : Install Dash for package build and build package
57
- command : |
58
- python -m venv venv
59
- . venv/bin/activate
60
- pip install --upgrade pip
61
- git clone --depth 1 https://github.com/plotly/dash.git dash-main
62
- cd dash-main && pip install -e .[dev,testing] --progress-bar off && renderer build && cd ../
63
- npm run build
57
+ name : Install Dash for package build and build package
58
+ command : |
59
+ python -m venv venv
60
+ . venv/bin/activate
61
+ pip install --upgrade pip
62
+ git clone --depth 1 https://github.com/plotly/dash.git dash-main
63
+ cd dash-main && pip install -e .[dev,testing] --progress-bar off && renderer build && cd ../
64
+ npm run build
64
65
65
66
- run :
66
- name : Install Dash Bio for using dash_bio.utils
67
- command : |
68
- . venv/bin/activate
69
- python setup.py sdist
70
- cd dist
71
- find . -name "*.gz" | xargs pip install --progress-bar off --no-cache-dir --ignore-installed --quiet && cd ..
72
- no_output_timeout : 20m
67
+ name : Install Dash Bio for using dash_bio.utils
68
+ command : |
69
+ . venv/bin/activate
70
+ python setup.py sdist
71
+ cd dist
72
+ find . -name "*.gz" | xargs pip install --progress-bar off --no-cache-dir --ignore-installed --quiet && cd ..
73
+ no_output_timeout : 20m
73
74
74
75
- run :
75
- name : Run unit tests
76
- command : |
77
- . venv/bin/activate
78
- cd tests/unit
79
- python unit_test_data_setup.py
80
- cd ../../
81
- npm run test
76
+ name : Run unit tests
77
+ command : |
78
+ . venv/bin/activate
79
+ cd tests/unit
80
+ python unit_test_data_setup.py
81
+ cd ../../
82
+ npm run test
82
83
83
84
python-3.6 : &test-template
85
+ resource_class : medium+
84
86
docker :
85
87
- image : circleci/python:3.6.9-stretch-node-browsers
86
88
auth :
87
- username : dashautomation
88
- password : $DASH_PAT_DOCKERHUB
89
+ username : dashautomation
90
+ password : $DASH_PAT_DOCKERHUB
89
91
environment :
90
92
PYTHON_VERSION : py36
91
93
PERCY_ENABLE : 0
@@ -95,85 +97,86 @@ jobs:
95
97
- run : echo $PYVERSION > ver.txt
96
98
97
99
- restore_cache :
98
- key : deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ checksum "ver.txt" }}-{{ checksum ".circleci/config.yml" }}
100
+ key : deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ checksum "ver.txt" }}-{{ checksum ".circleci/config.yml" }}
99
101
100
102
- run :
101
- name : Create virtualenv
102
- command : |
103
- python3 -m venv venv
103
+ name : Create virtualenv
104
+ command : |
105
+ python3 -m venv venv
104
106
105
107
- run :
106
- name : Install requirements
107
- command : |
108
- . venv/bin/activate
109
- pip install --upgrade pip
110
- pip install --progress-bar off -r tests/requirements.txt --quiet
111
- no_output_timeout : 20m
108
+ name : Install requirements
109
+ command : |
110
+ . venv/bin/activate
111
+ pip install --upgrade pip
112
+ pip install --progress-bar off -r tests/requirements.txt --quiet
113
+ no_output_timeout : 20m
112
114
113
115
- save_cache :
114
- key : deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ checksum "ver.txt" }}-{{ checksum ".circleci/config.yml" }}
115
- paths :
116
- - venv
116
+ key : deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}-{{ checksum "tests/requirements.txt" }}-{{ checksum "ver.txt" }}-{{ checksum ".circleci/config.yml" }}
117
+ paths :
118
+ - venv
117
119
118
120
- run :
119
- name : Install Dash
120
- command : |
121
- . venv/bin/activate
122
- git clone --depth 1 https://github.com/plotly/dash.git dash-main
123
- cd dash-main && pip install -e .[dev,testing] --progress-bar off && renderer build && cd ../
121
+ name : Install Dash
122
+ command : |
123
+ . venv/bin/activate
124
+ git clone --depth 1 https://github.com/plotly/dash.git dash-main
125
+ cd dash-main && pip install -e .[dev,testing] --progress-bar off && renderer build && cd ../
124
126
125
127
- run :
126
- name : Run pylint
127
- command : |
128
- . venv/bin/activate
129
- pylint tests/ dash_bio/component_factory/ dash_bio/utils/
130
- when : always
128
+ name : Run pylint
129
+ command : |
130
+ . venv/bin/activate
131
+ pylint tests/ dash_bio/component_factory/ dash_bio/utils/
132
+ when : always
131
133
132
134
- run :
133
- name : Run flake8
134
- command : |
135
- . venv/bin/activate
136
- flake8 --max-line-length=100 tests/ dash_bio/component_factory/ dash_bio/utils/
137
- when : always
135
+ name : Run flake8
136
+ command : |
137
+ . venv/bin/activate
138
+ flake8 --max-line-length=100 tests/ dash_bio/component_factory/ dash_bio/utils/
139
+ when : always
138
140
139
141
- run :
140
- name : Run integration tests
141
- command : |
142
- . venv/bin/activate
143
- npm ci
144
- npm run build
145
- python setup.py sdist
146
- cd dist
147
- find . -name "*.gz" | xargs pip install --progress-bar off --no-cache-dir --ignore-installed --quiet && cd ..
148
- pytest --nopercyfinalize tests/integration
149
- no_output_timeout : 20m
142
+ name : Run integration tests
143
+ command : |
144
+ . venv/bin/activate
145
+ npm ci
146
+ npm run build
147
+ python setup.py sdist
148
+ cd dist
149
+ find . -name "*.gz" | xargs pip install --progress-bar off --no-cache-dir --ignore-installed --quiet && cd ..
150
+ pytest --nopercyfinalize tests/integration
151
+ no_output_timeout : 20m
150
152
151
153
- run :
152
- name : Run unit tests
153
- command : |
154
- python -m venv venv
155
- . venv/bin/activate
156
- pytest tests/unit
154
+ name : Run unit tests
155
+ command : |
156
+ python -m venv venv
157
+ . venv/bin/activate
158
+ pytest tests/unit
157
159
158
160
python-3.7 :
159
161
<< : *test-template
162
+ resource_class : medium+
160
163
docker :
161
164
- image : circleci/python:3.7.5-stretch-node-browsers
162
165
auth :
163
- username : dashautomation
164
- password : $DASH_PAT_DOCKERHUB
166
+ username : dashautomation
167
+ password : $DASH_PAT_DOCKERHUB
165
168
environment :
166
169
PYTHON_VERSION : py37
167
170
PERCY_ENABLE : 1
168
171
PERCY_PARALLEL_TOTAL : -1
169
172
170
173
workflows :
171
- version : 2
172
- build :
173
- jobs :
174
- - python-3.6
175
- - python-3.7
176
- - node
177
- - percy-finalize :
178
- requires :
174
+ version : 2
175
+ build :
176
+ jobs :
177
+ - python-3.6
179
178
- python-3.7
179
+ - node
180
+ - percy-finalize :
181
+ requires :
182
+ - python-3.7
0 commit comments