<commit_before>version: 2

apt-run: &apt-install
  name: Install apt packages
  command: |
    sudo apt update
    sudo apt install -y graphviz

pip-run: &pip-install
  name: Install Python dependencies
  command: |
    python3 -m venv venv
    . venv/bin/activate
    pip install -q -r pip-requirements-doc

jobs:
  egg-info-37:
    docker:
      - image: circleci/python:3.7
    steps:
      - checkout
      - run: python setup.py egg_info

  32bit:
    docker:
      - image: quay.io/pypa/manylinux1_i686
    steps:
      - checkout
      - run:
          name: Install dependencies
          command: /opt/python/cp36-cp36m/bin/pip install numpy scipy "pytest<3.7" pytest-astropy pytest-xdist Cython jinja2
      - run:
          name: Run tests
          command: PYTHONHASHSEED=42 /opt/python/cp36-cp36m/bin/python setup.py test --parallel=4

  image-tests-mpl202:
    docker:
      - image: astropy/image-tests-py35-mpl202:1.3
    steps:
      - checkout
      - run:
          name: Run tests
          command: |
            python3 setup.py test -P visualization --remote-data=astropy -a "--mpl"

  image-tests-mpl212:
    docker:
      - image: astropy/image-tests-py35-mpl212:1.3
    steps:
      - checkout
      - run:
          name: Run tests
          command: |
            python3 setup.py test -P visualization --remote-data=astropy -a "--mpl"

  image-tests-mpl222:
    docker:
      - image: astropy/image-tests-py35-mpl222:1.3
    steps:
      - checkout
      - run:
          name: Run tests
          command: |
            python3 setup.py test -P visualization --remote-data=astropy -a "--mpl"

  image-tests-mpl300:
    docker:
      - image: astropy/image-tests-py35-mpl300:1.3
    steps:
      - checkout
      - run:
          name: Run tests
          command: |
            python3 setup.py test -P visualization --remote-data=astropy -a "--mpl"

  image-tests-mpldev:
    docker:
      - image: astropy/image-tests-py35-base:1.0
    steps:
      - checkout
      - run:
          name: Install dependencies, including developer version of Matplotlib
          command: |
            pip3 install pytest pytest-mpl pytest-astropy numpy scipy
            pip3 install git+https://github.com/matplotlib/matplotlib.git<commit_msg>Install apt dependencies for Matplotlib<commit_after>version: 2

apt-run: &apt-install
  name: Install apt packages
  command: |
    sudo apt update
    sudo apt install -y graphviz

pip-run: &pip-install
  name: Install Python dependencies
  command: |
    python3 -m venv venv
    . venv/bin/activate
    pip install -q -r pip-requirements-doc

jobs:
  egg-info-37:
    docker:
      - image: circleci/python:3.7
    steps:
      - checkout
      - run: python setup.py egg_info

  32bit:
    docker:
      - image: quay.io/pypa/manylinux1_i686
    steps:
      - checkout
      - run:
          name: Install dependencies
          command: /opt/python/cp36-cp36m/bin/pip install numpy scipy "pytest<3.7" pytest-astropy pytest-xdist Cython jinja2
      - run:
          name: Run tests
          command: PYTHONHASHSEED=42 /opt/python/cp36-cp36m/bin/python setup.py test --parallel=4

  image-tests-mpl202:
    docker:
      - image: astropy/image-tests-py35-mpl202:1.3
    steps:
      - checkout
      - run:
          name: Run tests
          command: |
            python3 setup.py test -P visualization --remote-data=astropy -a "--mpl"

  image-tests-mpl212:
    docker:
      - image: astropy/image-tests-py35-mpl212:1.3
    steps:
      - checkout
      - run:
          name: Run tests
          command: |
            python3 setup.py test -P visualization --remote-data=astropy -a "--mpl"

  image-tests-mpl222:
    docker:
      - image: astropy/image-tests-py35-mpl222:1.3
    steps:
      - checkout
      - run:
          name: Run tests
          command: |
            python3 setup.py test -P visualization --remote-data=astropy -a "--mpl"

  image-tests-mpl300:
    docker:
      - image: astropy/image-tests-py35-mpl300:1.3
    steps:
      - checkout
      - run:
          name: Run tests
          command: |
            python3 setup.py test -P visualization --remote-data=astropy -a "--mpl"

  image-tests-mpldev:
    docker:
      - image: astropy/image-tests-py35-base:1.0
    steps:
      - checkout
      - run:
          name: Install dependencies, including developer version of Matplotlib
          command: |
            apt-get install -y libfreetype6-dev libpng12-dev pkg-config
            pip3 install pytest pytest-mpl pytest-astropy numpy scipy
            pip3 install git+https://github.com/matplotlib/matplotlib.git
{'fraction_non_alphanumeric': 0.10147122457810472, 'fraction_numerical': 0.03353526611856339, 'mean_word_length': 1.8643122676579926, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '71771', 'n_tokens_mistral': 1636, 'n_tokens_neox': 1497, 'n_words': 363}