<commit_before>name: Python tests

on:
  push:
  pull_request:
  schedule:
    - cron: '3 15 * * SUN'

jobs:
  build:

    strategy:
      matrix:
        platform: [ubuntu-latest, windows-latest, macos-latest]
        python-version: [3.6, 3.7, 3.8, 3.9]

    name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
    runs-on: ${{ matrix.platform }}

    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install dependencies
        run: |
              python -m pip install --upgrade pip
              pip install -e git+https://github.com/maxmind/GeoIP2-python#egg=geoip2
              pip install tox tox-gh-actions

      - name: Test with tox
        run: tox<commit_msg>Skip testing on Windows<commit_after>name: Python tests

on:
  push:
  pull_request:
  schedule:
    - cron: '3 15 * * SUN'

jobs:
  build:

    strategy:
      matrix:
        # We don't test on Windows currently as it appears mocket may not
        # work there.
        platform: [ubuntu-latest, macos-latest]
        python-version: [3.6, 3.7, 3.8, 3.9]

    name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
    runs-on: ${{ matrix.platform }}

    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python-version }}

      - name: Install dependencies
        run: |
              python -m pip install --upgrade pip
              pip install -e git+https://github.com/maxmind/GeoIP2-python#egg=geoip2
              pip install tox tox-gh-actions

      - name: Test with tox
        run: tox
{'fraction_non_alphanumeric': 0.1222466960352423, 'fraction_numerical': 0.016519823788546256, 'mean_word_length': 1.9738134206219313, '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': '3188887', 'n_tokens_mistral': 600, 'n_tokens_neox': 550, 'n_words': 151}