44
44
- run :
45
45
name : 🔎 Unit Tests
46
46
command : |
47
+ set -eo pipefail
47
48
npm run test-unit
48
49
49
50
lint-unit-36 :
85
86
command : |
86
87
sudo pip install virtualenv --upgrade
87
88
python -m venv venv || virtualenv venv && . venv/bin/activate
89
+ set -eo pipefail
88
90
pip install --progress-bar off --no-cache-dir -r dev-requirements.txt
89
91
- save_cache :
90
92
key : dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "dev-requirements.txt" }}
@@ -94,17 +96,18 @@ jobs:
94
96
name : 🏗️ build dash
95
97
command : |
96
98
. venv/bin/activate && mkdir packages
99
+ set -eo pipefail
97
100
# build main dash
98
101
git clone --depth 1 https://github.com/plotly/dash.git dash-main
99
102
cd dash-main && pip install -e .[dev] --progress-bar off && python setup.py sdist && mv dist/* ../packages/
100
103
cd dash-renderer && npm ci && npm run build
101
104
python setup.py sdist && mv dist/* ../../packages/ && cd ../..
102
- # build dcc
103
- npm ci && npm run build && python setup.py sdist && mv dist/* ./packages
104
105
# build html
105
106
git clone --depth 1 https://github.com/plotly/dash-html-components.git
106
107
cd dash-html-components && npm ci && npm run build
107
- python setup.py sdist && mv dist/* ../packages && cd .. && ls -la packages
108
+ python setup.py sdist && mv dist/* ../packages && cd ..
109
+ # build dcc
110
+ npm ci && npm run build && python setup.py sdist && mv dist/* ./packages && ls -la packages
108
111
- persist_to_workspace :
109
112
root : ~/project
110
113
paths :
@@ -152,6 +155,7 @@ jobs:
152
155
name : 🧪 Run Integration Tests
153
156
command : |
154
157
. venv/bin/activate && rm -rf dash_core_components && ls -la
158
+ set -eo pipefail
155
159
cd packages && mv dash-*.tar.gz main.tar.gz && ls -la
156
160
find . -name "dash_*.gz" | xargs pip install -I --progress-bar off --no-cache-dir
157
161
pip install --no-cache-dir --progress-bar off main.tar.gz[dev,testing]
@@ -209,11 +213,11 @@ jobs:
209
213
name : 🧪 Run Legacy Integration Tests
210
214
command : |
211
215
. venv/bin/activate && rm -rf dash_core_components && ls -la
216
+ set -eo pipefail
212
217
cd packages && mv dash-*.tar.gz main.tar.gz && ls -la
213
218
find . -name "dash_*.gz" | xargs pip install -I --progress-bar off --no-cache-dir
214
219
pip install --no-cache-dir --progress-bar off main.tar.gz[dev,testing]
215
220
pip list | grep dash | xargs pip show && cd ..
216
- set -eo pipefail
217
221
echo $(python -V 2>&1) | grep 3. && python -m unittest tests/test_dash_import.py
218
222
TESTFILES=$(circleci tests glob "tests/test_integration_*.py" | circleci tests split --split-by=timings)
219
223
pytest --durations=10 --junitxml=test-reports/junit_legacy.xml ${TESTFILES}
0 commit comments