<commit_before>version: 2.1

executors:
  py36:
    working_directory: ~/repo
    docker:
      - image: circleci/python:3.6

jobs:
  install_dependencies_py3:
    executor: py36
    steps:
      - checkout
      - restore_cache:
          key: virtualenv-py3-v1-{{ checksum "poetry.lock" }}
      - attach_workspace:
          at: ~/repo
      - run:
          name: Install Python build dependencies
          command: |
            poetry install
      - persist_to_workspace:
          root: ~/repo
          paths: [.venv]
      - save_cache:
          key: virtualenv-py3-v1-{{ checksum "poetry.lock" }}
          paths: [.venv]
  test_py3:
    executor: py36
    steps:
      - checkout
      - restore_cache:
          key: virtualenv-py3-v1-{{ checksum "poetry.lock" }}
      - attach_workspace:
          at: ~/repo
      - run:
          name: Run tests
          command: |
            poetry run task ci
      - save_cache:
          key: virtualenv-py3-v1-{{ checksum "poetry.lock" }}
          paths: [.venv]

workflows:
  version: 2
  test:
    jobs:
      - install_dependencies_py3
      - test_py3:
          requires: [install_dependencies_py3]<commit_msg>Matrix build against various python versions<commit_after>---
version: 2.1

executors:
  python:
    parameters:
      working_directory:
        type: string
        default: ~/repo
      python_version_tag:
        type: string
        default: "3.6"
    working_directory: <<parameters.working_directory>>
    docker:
        - image: circleci/python:<<parameters.python_version_tag>>

jobs:
  test:
    parameters:
      python_version_tag:
        type: string
        default: "3.6"
    executor:
      name: python
      python_version_tag: <<parameters.python_version_tag>>
    steps:
      - checkout
      - attach_workspace:
          at: ~/repo
      - run:
          name: Install Python build dependencies
          command: |
            poetry install
      - run:
          name: Run tests
          command: |
            poetry run task ci

workflows:
  version: 2
  CI_CD:
    jobs:
      - test:
          matrix:
            parameters:
              python_version_tag: ["3.6", "3.7", "3.8"]
{'fraction_non_alphanumeric': 0.09954337899543379, 'fraction_numerical': 0.016894977168949773, 'mean_word_length': 1.7116336633663367, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '1160701', 'n_tokens_mistral': 698, 'n_tokens_neox': 682, 'n_words': 155}