aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
blob: 7c144ee07764d24ca66c0be9332af35d8022d2fe (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
44
45
46
47
48
49
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"
      - test:
          name: "python 3.6"
          version: "3.5"
      - test:
          name: "python 3.7"
          version: "3.5"