<commit_before>version: 2.1

orbs:
  codecov: codecov/codecov@1.0.5

workflows:
  version: 2
  test:
    jobs:
      - py27
      #- py37
      #- black
      #- check-manifest
      - docs
      - flake8

jobs:
  py37: &test-template
    docker:
      - image: mopidy/ci-python:3.7
    steps:
      - checkout
      - restore_cache:
          name: Restoring tox cache
          keys:
            - tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ .BuildNum }}
            - tox-v1-{{ .Environment.CIRCLE_JOB }}
      - run:
          name: Run tests
          command: |
            tox -e $CIRCLE_JOB -- \
              --junit-xml=test-results/pytest/results.xml \
              --cov-report=xml
      - save_cache:
          name: Saving tox cache
          key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ .BuildNum }}
          paths:
            - ./.tox
            - ~/.cache/pip
      - codecov/upload:
          file: coverage.xml
      - store_test_results:
          path: test-results

  py27: *test-template

  black: *test-template

  check-manifest: *test-template

  docs: *test-template

  flake8: *test-template
<commit_msg>circleci: Bust cache when setup.py changes<commit_after>version: 2.1

orbs:
  codecov: codecov/codecov@1.0.5

workflows:
  version: 2
  test:
    jobs:
      - py27
      #- py37
      #- black
      #- check-manifest
      - docs
      - flake8

jobs:
  py37: &test-template
    docker:
      - image: mopidy/ci-python:3.7
    steps:
      - checkout
      - restore_cache:
          name: Restoring tox cache
          keys:
            - tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}
            - tox-v1-{{ .Environment.CIRCLE_JOB }}
      - run:
          name: Run tests
          command: |
            tox -e $CIRCLE_JOB -- \
              --junit-xml=test-results/pytest/results.xml \
              --cov-report=xml
      - save_cache:
          name: Saving tox cache
          key: tox-v1-{{ .Environment.CIRCLE_JOB }}-{{ checksum "setup.py" }}
          paths:
            - ./.tox
            - ~/.cache/pip
      - codecov/upload:
          file: coverage.xml
      - store_test_results:
          path: test-results

  py27: *test-template

  black: *test-template

  check-manifest: *test-template

  docs: *test-template

  flake8: *test-template

{'fraction_non_alphanumeric': 0.12537829658452226, 'fraction_numerical': 0.018158236057068743, 'mean_word_length': 1.4643237486687966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2315915', 'n_tokens_mistral': 835, 'n_tokens_neox': 784, 'n_words': 153}