<commit_before>name: CI
on: [push, pull_request]
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [macos-latest, windows-latest, ubuntu-latest]
        python-version: [2.7, 3.6, 3.7, 3.8, 3.9, pypy-2.7, pypy-3.6, pypy-3.7]
        exclude:
          # CI needs to be configured to install openssl for the cryptography package.
          - os: macos-latest
            python-version: pypy-2.7
          # UnicodeDecodeError on test_match_utf8 in Python 2, test_removes_bom in Python 3, etc.
          - os: windows-latest
            python-version: 2.7
          - os: windows-latest
            python-version: pypy-2.7
          - os: windows-latest
            python-version: 3.6
          - os: windows-latest
            python-version: pypy-3.6
          - os: windows-latest
            python-version: 3.7
          - os: windows-latest
            python-version: pypy-3.7
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      # https://github.com/actions/cache/blob/main/examples.md#using-a-script-to-get-cache-location
      - id: pip-cache
        run: python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
      - uses: actions/cache@v1
        with:
          path: ${{ steps.pip-cache.outputs.dir }}
          key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
          restore-keys: |
            ${{ runner.os }}-pip-
      - run: pip install --upgrade check-manifest flake8 isort setuptools
      - run: check-manifest
      - run: flake8 .
      - run: isort . --check-only
      - run: pip install .[test] coveralls
      - run: nosetests --with-coverage --cover-package=csvkit
      # CoverallsException: Not on TravisCI. You have to provide either repo_token in .coveralls.yml or set the COVERALLS_REPO_TOKEN env var.
      - if: matrix.python-version != '2.7' && matrix.python-version != 'pypy-2.7'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: coveralls --service=github
<commit_msg>ci: Drop full support for PyPy 2.7, since sqlalchemy seems to have a bug<commit_after>name: CI
on: [push, pull_request]
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [macos-latest, windows-latest, ubuntu-latest]
        # sqlalchemy seems to have a bug in pypy-2.7.
        python-version: [2.7, 3.6, 3.7, 3.8, 3.9, pypy-3.6, pypy-3.7]
        exclude:
          # UnicodeDecodeError on test_match_utf8 in Python 2, test_removes_bom in Python 3, etc.
          - os: windows-latest
            python-version: 2.7
          - os: windows-latest
            python-version: 3.6
          - os: windows-latest
            python-version: pypy-3.6
          - os: windows-latest
            python-version: 3.7
          - os: windows-latest
            python-version: pypy-3.7
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}
      # https://github.com/actions/cache/blob/main/examples.md#using-a-script-to-get-cache-location
      - id: pip-cache
        run: python -c "from pip._internal.locations import USER_CACHE_DIR; print('::set-output name=dir::' + USER_CACHE_DIR)"
      - uses: actions/cache@v1
        with:
          path: ${{ steps.pip-cache.outputs.dir }}
          key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
          restore-keys: |
            ${{ runner.os }}-pip-
      - run: pip install --upgrade check-manifest flake8 isort setuptools
      - run: check-manifest
      - run: flake8 .
      - run: isort . --check-only
      - run: pip install .[test] coveralls
      - run: nosetests --with-coverage --cover-package=csvkit
      # CoverallsException: Not on TravisCI. You have to provide either repo_token in .coveralls.yml or set the COVERALLS_REPO_TOKEN env var.
      - if: matrix.python-version != '2.7' && matrix.python-version != 'pypy-2.7'
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: coveralls --service=github

{'fraction_non_alphanumeric': 0.13008130081300814, 'fraction_numerical': 0.0196078431372549, 'mean_word_length': 1.9708806818181819, 'pattern_counts': {'":': 0, '<': 3, '<?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': '203891', 'n_tokens_mistral': 1416, 'n_tokens_neox': 1363, 'n_words': 324}