|
4 | 4 | #
|
5 | 5 | version: 2
|
6 | 6 | 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 |
7 | 26 | test-py36:
|
8 | 27 | docker:
|
9 |
| - # specify the version you desire here |
10 |
| - # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` |
11 | 28 | - image: circleci/python:3.6
|
12 | 29 | 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 |
| - |
19 | 30 | working_directory: ~/repo
|
20 |
| - |
21 | 31 | steps:
|
22 | 32 | - checkout
|
23 | 33 | - run:
|
24 | 34 | name: install dependencies
|
25 | 35 | 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 . |
28 | 38 | - run:
|
29 | 39 | name: use flake8 check self
|
30 | 40 | command: |
|
|
59 | 69 | - run:
|
60 | 70 | name: install dependencies
|
61 | 71 | 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 . |
64 | 74 | - run:
|
65 | 75 | name: use flake8 check self
|
66 | 76 | command: |
|
@@ -91,7 +101,10 @@ workflows:
|
91 | 101 | version: 2
|
92 | 102 | test:
|
93 | 103 | 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