File tree 3 files changed +604
-57
lines changed
3 files changed +604
-57
lines changed Original file line number Diff line number Diff line change 5
5
docker :
6
6
- image : circleci/python:2.7-stretch-browsers
7
7
environment :
8
- TOX_PYTHON_27 : python2.7
9
- TOX_RUN_ENV : py27
8
+ REQUIREMENTS_FILE : dev-requirements.txt
9
+ PYLINTRC : .pylintrc
10
10
11
11
steps :
12
12
- checkout
13
+ - restore_cache :
14
+ key : deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}
15
+
13
16
- run :
14
- name : Install tox
15
- command : ' sudo pip install tox'
17
+ name : Install dependencies
18
+ command : |
19
+ sudo pip install virtualenv
20
+ python -m venv venv || virtualenv venv
21
+ . venv/bin/activate
22
+ pip install -r $REQUIREMENTS_FILE
23
+
24
+ - save_cache :
25
+ key : deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}
26
+ paths :
27
+ - " venv"
28
+
29
+ - run :
30
+ name : Run lint
31
+ command : |
32
+ . venv/bin/activate
33
+ pylint dash setup.py --rcfile=$PYLINTRC
34
+ flake8 dash setup.py
35
+
16
36
- run :
17
- name : Test with tox
18
- command : ' tox -e $TOX_RUN_ENV'
37
+ name : Run tests
38
+ command : |
39
+ . venv/bin/activate
40
+ python --version
41
+ python -m unittest tests.development.test_base_component
42
+ python -m unittest tests.development.test_component_loader
43
+ python -m unittest tests.test_integration
44
+ python -m unittest tests.test_resources
45
+ python -m unittest tests.test_configs
19
46
20
47
" python-3.6 " :
21
48
<< : *test-template
22
49
docker :
23
50
- image : circleci/python:3.6-stretch-browsers
24
51
environment :
25
- TOX_PYTHON_36 : python3.6
26
- TOX_RUN_ENV : py36
52
+ REQUIREMENTS_FILE : dev-requirements.txt
53
+ PYLINTRC : .pylintrc
27
54
28
55
" python-3.7 " :
29
56
<< : *test-template
30
57
docker :
31
58
- image : circleci/python:3.7-stretch-browsers
32
59
environment :
33
- TOX_PYTHON_37 : python3.7
34
- TOX_RUN_ENV : py37
60
+ REQUIREMENTS_FILE : dev-requirements-py37.txt
61
+ PYLINTRC : .pylintrc37
35
62
36
63
37
64
workflows :
You can’t perform that action at this time.
0 commit comments