language: python
dist: focal # use LTS 20.04

python:
    - "3.6"
    - "3.7"
    - "3.8"

env:
    - DJANGO=2.2.23
    - DJANGO=3.1.11
    - DJANGO=3.2.3

install:
    - pip install -q Django==$DJANGO
    - pip install -q -r requirements.txt
    - pip install -q -r requirements-testing.txt

before_script:
    - "pycodestyle --exclude=migrations --ignore=E501,W503,W504 helpdesk"

script:
    - coverage run --source='.' quicktest.py helpdesk

after_success:
    - codecov
