<commit_before>name: Python package

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{matrix.os}}
    strategy:
      matrix:
        os: [ubuntu-20.04, macos-10.15]
        python-version: [2.7, 3.5, 3.6, 3.7, 3.8]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{matrix.python-version}}
      uses: actions/setup-python@v1
      with:
        python-version: ${{matrix.python-version}}
    - name: Install
      run: |
        [[ $(uname) == Linux ]] && sudo apt-get install --yes rpm tcsh fish
        [[ $(uname) == Darwin ]] && brew install bash rpm tcsh fish
        # OSX tests require https://github.com/pypa/pip/pull/6008 (added in 19.2)
        # in order to address https://stackoverflow.com/questions/24257803
        # (the fix recommended there does not appear to work without it).
        # However it no longer works after https://github.com/pypa/pip/issues/7309
        # (added in 20.2), so we must specifically install a version between these.
        if [[ $(uname) == Darwin ]]; then python -m pip install 'pip>=19.2,<20.2'; fi
        python -m pip install --quiet --upgrade codecov
    - name: Test
      run: |
        make test
    - uses: codecov/codecov-action@v1<commit_msg>Add Python 3.9 to test matrix<commit_after>name: Python package

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{matrix.os}}
    strategy:
      matrix:
        os: [ubuntu-20.04, macos-10.15]
        python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9]

    steps:
    - uses: actions/checkout@v1
    - name: Set up Python ${{matrix.python-version}}
      uses: actions/setup-python@v1
      with:
        python-version: ${{matrix.python-version}}
    - name: Install
      run: |
        [[ $(uname) == Linux ]] && sudo apt-get install --yes rpm tcsh fish
        [[ $(uname) == Darwin ]] && brew install bash rpm tcsh fish
        # OSX tests require https://github.com/pypa/pip/pull/6008 (added in 19.2)
        # in order to address https://stackoverflow.com/questions/24257803
        # (the fix recommended there does not appear to work without it).
        # However it no longer works after https://github.com/pypa/pip/issues/7309
        # (added in 20.2), so we must specifically install a version between these.
        if [[ $(uname) == Darwin ]]; then python -m pip install 'pip>=19.2,<20.2'; fi
        python -m pip install --quiet --upgrade codecov
    - name: Test
      run: |
        make test
    - uses: codecov/codecov-action@v1
{'fraction_non_alphanumeric': 0.13780634793089594, 'fraction_numerical': 0.04098031337886701, 'mean_word_length': 2.2892998678996035, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '1865353', 'n_tokens_mistral': 878, 'n_tokens_neox': 803, 'n_words': 245}