Skip to content

Commit 25375ba

Browse files
committed
Run tests without tox.
Remove tox.ini
1 parent 76cabf1 commit 25375ba

File tree

3 files changed

+604
-57
lines changed

3 files changed

+604
-57
lines changed

.circleci/config.yml

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,60 @@ jobs:
55
docker:
66
- image: circleci/python:2.7-stretch-browsers
77
environment:
8-
TOX_PYTHON_27: python2.7
9-
TOX_RUN_ENV: py27
8+
REQUIREMENTS_FILE: dev-requirements.txt
9+
PYLINTRC: .pylintrc
1010

1111
steps:
1212
- checkout
13+
- restore_cache:
14+
key: deps1-{{ .Branch }}-{{ checksum "dev-requirements.txt" }}
15+
1316
- 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+
1636
- 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
1946
2047
"python-3.6":
2148
<<: *test-template
2249
docker:
2350
- image: circleci/python:3.6-stretch-browsers
2451
environment:
25-
TOX_PYTHON_36: python3.6
26-
TOX_RUN_ENV: py36
52+
REQUIREMENTS_FILE: dev-requirements.txt
53+
PYLINTRC: .pylintrc
2754

2855
"python-3.7":
2956
<<: *test-template
3057
docker:
3158
- image: circleci/python:3.7-stretch-browsers
3259
environment:
33-
TOX_PYTHON_37: python3.7
34-
TOX_RUN_ENV: py37
60+
REQUIREMENTS_FILE: dev-requirements-py37.txt
61+
PYLINTRC: .pylintrc37
3562

3663

3764
workflows:

0 commit comments

Comments
 (0)