diff options
Diffstat (limited to '.circleci/config.yml')
| -rw-r--r-- | .circleci/config.yml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..46dab22 --- /dev/null +++ b/.circleci/config.yml | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | version: 2.1 | ||
| 2 | |||
| 3 | executors: | ||
| 4 | python: | ||
| 5 | parameters: | ||
| 6 | version: | ||
| 7 | type: string | ||
| 8 | default: "3.8" | ||
| 9 | docker: | ||
| 10 | - image: circleci/python:<< parameters.version >> | ||
| 11 | |||
| 12 | commands: | ||
| 13 | setup: | ||
| 14 | description: install dependencies | ||
| 15 | steps: | ||
| 16 | - run: sudo apt-get update && sudo apt-get -y dist-upgrade | ||
| 17 | - run: sudo pip install -e .[testing] | ||
| 18 | |||
| 19 | jobs: | ||
| 20 | test: | ||
| 21 | parameters: | ||
| 22 | version: | ||
| 23 | type: string | ||
| 24 | default: "2.7" | ||
| 25 | executor: | ||
| 26 | name: python | ||
| 27 | version: << parameters.version >> | ||
| 28 | steps: | ||
| 29 | - checkout | ||
| 30 | - setup | ||
| 31 | - run: python --version | ||
| 32 | - run: python -m unittest discover | ||
| 33 | - run: find . -name \*.py -print | xargs flake8 --show-source --statistics | ||
| 34 | |||
| 35 | workflows: | ||
| 36 | test: | ||
| 37 | jobs: | ||
| 38 | - test: | ||
| 39 | name: "python 2.7" | ||
| 40 | version: "2.7" | ||
| 41 | - test: | ||
| 42 | name: "python 3.5" | ||
| 43 | version: "3.5" | ||