version: 2

workflows:
  version: 2
  workflow:
    jobs:
      - test-2.7
      - test-3.4
      - test-3.5
      - test-3.6
      - test-3.7

defaults: &defaults
  working_directory: ~/code
  steps:
  - checkout
  - run:
      name: Test
      command: python setup.py test

jobs:
  test-2.7:
    <<: *defaults
    docker:
    - image: circleci/python:2.7
  test-3.4:
    <<: *defaults
    docker:
    - image: circleci/python:3.4
  test-3.5:
    <<: *defaults
    docker:
    - image: circleci/python:3.5
  test-3.6:
    <<: *defaults
    docker:
    - image: circleci/python:3.6
  test-3.7:
    <<: *defaults
    docker:
    - image: circleci/python:3.7.0b4

version: 2

workflows:
  version: 2
  workflow:
    jobs:
      - test-2.7
      - test-3.4
      - test-3.5
      - test-3.6
      - test-3.7
      - lint-rst

defaults: &defaults
  working_directory: ~/code
  steps:
  - checkout
  - run:
      name: Test
      command: python setup.py test

jobs:
  test-2.7:
    <<: *defaults
    docker:
    - image: circleci/python:2.7
  test-3.4:
    <<: *defaults
    docker:
    - image: circleci/python:3.4
  test-3.5:
    <<: *defaults
    docker:
    - image: circleci/python:3.5
  test-3.6:
    <<: *defaults
    docker:
    - image: circleci/python:3.6
  test-3.7:
    <<: *defaults
    docker:
    - image: circleci/python:3.7.0b4
    
  lint-rst:
    working_directory: ~/code
    steps:
    - checkout
    - run:
        name: Install lint tools
        command: |
            python3 -m venv venv
            . venv/bin/activate
            pip install Pygments restructuredtext-lint
    - run:
        name: Lint
        command:  |
            . venv/bin/activate
            rst-lint --encoding=utf-8 README.rst
    docker:
    - image: circleci/python:3.6

Add check to CircleCI that lints the README.
Add check to CircleCI that lints the README.
