Skip to content

Commit 7b9e128

Browse files
committed
use ci workflows
1 parent a126983 commit 7b9e128

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

.circleci/config.yml

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,37 @@
44
#
55
version: 2
66
jobs:
7+
tox:
8+
docker:
9+
- image: circleci/python:3.6
10+
user: root
11+
working_directory: ~/repo
12+
steps:
13+
- checkout
14+
- run:
15+
name: install dependencies && tox
16+
command: |
17+
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
18+
export PATH="/root/.pyenv/bin:$PATH"
19+
eval "$(pyenv init -)"
20+
eval "$(pyenv virtualenv-init -)"
21+
pyenv install 3.7.0
22+
pyenv virtualenv -f 3.7.0 py37
23+
pyenv shell py37
24+
pip install tox
25+
tox
726
test-py36:
827
docker:
9-
# specify the version you desire here
10-
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
1128
- image: circleci/python:3.6
1229
user: root
13-
14-
# Specify service dependencies here if necessary
15-
# CircleCI maintains a library of pre-built images
16-
# documented at https://circleci.com/docs/2.0/circleci-images/
17-
# - image: circleci/postgres:9.4
18-
1930
working_directory: ~/repo
20-
2131
steps:
2232
- checkout
2333
- run:
2434
name: install dependencies
2535
command: |
26-
sudo pip install flake8 pytest pytest-cov
27-
sudo pip install --editable .
36+
pip install flake8 pytest pytest-cov
37+
pip install --editable .
2838
- run:
2939
name: use flake8 check self
3040
command: |
@@ -59,8 +69,8 @@ jobs:
5969
- run:
6070
name: install dependencies
6171
command: |
62-
sudo pip install flake8 pytest pytest-cov
63-
sudo pip install --editable .
72+
pip install flake8 pytest pytest-cov
73+
pip install --editable .
6474
- run:
6575
name: use flake8 check self
6676
command: |
@@ -91,7 +101,10 @@ workflows:
91101
version: 2
92102
test:
93103
jobs:
94-
- test-py36
95-
- test-py37
96-
97-
104+
- tox
105+
- test-py36:
106+
requires:
107+
- tox
108+
- test-py37:
109+
requires:
110+
- tox

0 commit comments

Comments
 (0)