name: Tests

on: [push, pull_request]

jobs:
  unit-tests:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        python-version: [ 3.6, 3.7, 3.8, 3.9, ]
        requirements-file: [
            django-2.2.txt,
            django-3.0.txt,
            django-3.1.txt,
            django-3.2.txt
        ]
        os: [
          ubuntu-20.04,
        ]

    steps:
      - uses: actions/checkout@v1
      - 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 -r requirements/optional.txt
          pip install -r requirements/${{ matrix.requirements-file }}
          python setup.py install

      - name: Run tests
        run: |
          coverage run --source=explorer manage.py test
          coverage report

name: Tests

on: [push, pull_request]

jobs:
  unit-tests:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        python-version: [ 3.6, 3.7, 3.8]
        requirements-file: [
            django-2.2.txt,
            django-3.0.txt,
            django-3.1.txt,
            django-3.2.txt
        ]
        os: [
          ubuntu-20.04,
        ]

    steps:
      - uses: actions/checkout@v1
      - 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 -r requirements/optional.txt
          pip install -r requirements/${{ matrix.requirements-file }}
          python setup.py install

      - name: Run tests
        run: |
          coverage run --source=explorer manage.py test
          coverage report

Remove python 3.9 from github actions due to celery failures
Remove python 3.9 from github actions due to celery failures
