blob: 46dab22cea8a72185c8cd1def8778b5a96ab20fc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
version: 2.1
executors:
python:
parameters:
version:
type: string
default: "3.8"
docker:
- image: circleci/python:<< parameters.version >>
commands:
setup:
description: install dependencies
steps:
- run: sudo apt-get update && sudo apt-get -y dist-upgrade
- run: sudo pip install -e .[testing]
jobs:
test:
parameters:
version:
type: string
default: "2.7"
executor:
name: python
version: << parameters.version >>
steps:
- checkout
- setup
- run: python --version
- run: python -m unittest discover
- run: find . -name \*.py -print | xargs flake8 --show-source --statistics
workflows:
test:
jobs:
- test:
name: "python 2.7"
version: "2.7"
- test:
name: "python 3.5"
version: "3.5"
|