<commit_before>version: 2.1
orbs:
  codecov: codecov/codecov@3.1.1
jobs:
  test_py:
    docker:
      - image: cimg/python:3.9
        auth:
          username: $DOCKERHUB_USERNAME
          password: $DOCKERHUB_PASSWORD
    steps:
      - checkout
      - setup_remote_docker:
          version: 19.03.13
      - run:
          name: Python Tests
          command: |
            make clean test-image
            CONTAINER_ID=$(docker ps -alq)
            docker cp $CONTAINER_ID:/app/python_coverage .<commit_msg>Specify a downpinned version of the CircleCI image to avoid CI failures<commit_after>version: 2.1
orbs:
  codecov: codecov/codecov@3.1.1
jobs:
  test_py:
    docker:
      - image: cimg/python:3.9.13
        # 3.9.13 is a temporary downpin while we shake out test failures that happen only on 3.9.14
        # See https://github.com/mozilla/bedrock/issues/12203
        auth:
          username: $DOCKERHUB_USERNAME
          password: <PASSWORD>
    steps:
      - checkout
      - setup_remote_docker:
          version: 19.03.13
      - run:
          name: Python Tests
          command: |
            make clean test-image
            CONTAINER_ID=$(docker ps -alq)
            docker cp $CONTAINER_ID:/app/python_coverage .
{'fraction_non_alphanumeric': 0.08828250401284109, 'fraction_numerical': 0.03290529695024077, 'mean_word_length': 1.8865740740740742, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '3785166', 'n_tokens_mistral': 438, 'n_tokens_neox': 399, 'n_words': 97}