name: Test

on:
  - push
  - pull_request

jobs:
  build:
    name: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }}
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        python-version:
          - 3.4
          - 3.5
          - 3.6
          - 3.7
          - pypy3
        tox-environment:
          - django111
          - django22
          - django30

    env:
      TOXENV: ${{ matrix.tox-environment }}

    steps:
      - uses: actions/checkout@v2

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

      - name: Set up system dependencies
        run: |
          sudo apt-get update
          sudo apt-get install gettext

      - name: Install dependencies
        run: python -m pip install tox

      - name: Run tests
        run: tox

name: Test

on:
  - push
  - pull_request

jobs:
  build:
    name: Python ${{ matrix.python-version }} / ${{ matrix.tox-environment }}
    runs-on: ubuntu-latest

    strategy:
      fail-fast: false
      matrix:
        python-version:
          - 3.5
          - 3.6
          - 3.7
          - pypy3
        tox-environment:
          - django111
          - django22
          - django30

    env:
      TOXENV: ${{ matrix.tox-environment }}

    steps:
      - uses: actions/checkout@v2

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

      - name: Set up system dependencies
        run: |
          sudo apt-get update
          sudo apt-get install gettext

      - name: Install dependencies
        run: python -m pip install tox

      - name: Run tests
        run: tox

Disable builds for Python 3.4
CI: Disable builds for Python 3.4

Not supported on Github Actions.
