<commit_before>name: "Tests"

on:
  push:
    branches: [ master, develop ]
  pull_request:
    # The branches below must be a subset of the branches above
    branches: [ develop ]
  schedule:
    - cron: '55 22 15 * *'

jobs:
  pytest:
    name: pytest
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python: [3.6, 3.7, 3.8, 3.9]
        django: [1.11, 2.0, 2.1, 2.2, 3.0, 3.1, 3.2]
        database: [postgres, sqlite]
        exclude:
          - python: 3.8
            django: 1.11
          - python: 3.8
            django: 2.0
          - python: 3.8
            django: 2.1
          - python: 3.9
            django: 1.11
          - python: 3.9
            django: 2.0
          - python: 3.9
            django: 2.1

    services:
      # as far as I can see, no way to make this conditional on the matrix database
      postgres:
        image: postgres:9.6
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: postgres
          POSTGRES_DB: dirtyfields_test
        ports:
          - 5432:5432

    env:
      TEST_DATABASE: ${{ matrix.database }}

    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

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

      - name: Install test requirements
        run: |
          python -m pip install --upgrade pip wheel
          pip install django~=${{ matrix.django }}.0 coverage[toml] coveralls -r tests-requirements.txt .
          python --version
          pip list
<commit_msg>Change the matrix entries to be explicit strings.<commit_after>name: "Tests"

on:
  push:
    branches: [ master, develop ]
  pull_request:
    # The branches below must be a subset of the branches above
    branches: [ develop ]
  schedule:
    - cron: '55 22 15 * *'

jobs:
  pytest:
    name: pytest
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python: ['3.6', '3.7', '3.8', '3.9']
        django: ['1.11', '2.0', '2.1', '2.2', '3.0', '3.1', '3.2']
        database: ['postgres', 'sqlite']
        exclude:
          - python: '3.8'
            django: '1.11'
          - python: '3.8'
            django: '2.0'
          - python: '3.8'
            django: '2.1'
          - python: '3.9'
            django: '1.11'
          - python: '3.9'
            django: '2.0'
          - python: '3.9'
            django: '2.1'

    services:
      # as far as I can see, no way to make this conditional on the matrix database
      postgres:
        image: postgres:9.6
        env:
          POSTGRES_USER: postgres
          POSTGRES_PASSWORD: <PASSWORD>
          POSTGRES_DB: dirtyfields_test
        ports:
          - 5432:5432

    env:
      TEST_DATABASE: ${{ matrix.database }}

    steps:
      - name: Checkout repository
        uses: actions/checkout@v2

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

      - name: Install test requirements
        run: |
          python -m pip install --upgrade pip wheel
          pip install django~=${{ matrix.django }}.0 coverage[toml] coveralls -r tests-requirements.txt .
          python --version
          pip list

{'fraction_non_alphanumeric': 0.1146281499692686, 'fraction_numerical': 0.04179471419791026, 'mean_word_length': 1.5529411764705883, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '785488', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1036, 'n_words': 301}