<commit_before>name: Python package

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  workflow_dispatch:

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
        django-version: [2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0]

        exclude:

          - python-version: 3.7
            django-version: 4.0

          - python-version: 3.6
            django-version: 4.0

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }} & Django ${{ matrix.django-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install deps
      run: |
        python -m pip install pytest coverage coveralls "Django~=${{ matrix.django-version }}.0"
    - name: Run tests
      env:
        GITHUB_TOKEN: ${{ secrets.github_token }}
      run: |
        coverage run --source=sitegate setup.py test<commit_msg>QA config fix.<commit_after>name: Python package

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  workflow_dispatch:

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
        django-version: [2.0, 2.1, 2.2, 3.0, 3.1, 3.2, 4.0]

        exclude:

          - python-version: 3.7
            django-version: 4.0

          - python-version: 3.6
            django-version: 4.0

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }} & Django ${{ matrix.django-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install deps
      run: |
        python -m pip install pytest coverage coveralls "Django~=${{ matrix.django-version }}.0"
    - name: Run tests
      env:
        GITHUB_TOKEN: ${{ secrets.github_token }}
      run: |
        coverage run --source=sitemetrics setup.py test
{'fraction_non_alphanumeric': 0.13583252190847128, 'fraction_numerical': 0.035053554040895815, 'mean_word_length': 1.9610951008645534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2214853', 'n_tokens_mistral': 734, 'n_tokens_neox': 692, 'n_words': 167}