Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,23 @@ on: [push, pull_request]

jobs:
unit-tests:
# Runs for all supported Django/Python versions
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
django-version: ['2.2', '3.1', '3.2']
django-version: ['2.2', '3.1', '3.2', '4.0']
os: [
ubuntu-20.04,
]
exclude:
- python-version: '3.7'
django-version: '4.0'
- python-version: '3.10'
django-version: '2.2'
- python-version: '3.10'
django-version: '3.1'

steps:
- uses: actions/checkout@v1
Expand All @@ -24,7 +32,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install django==${{ matrix.django-version }} coverage
pip install Django==${{ matrix.django-version }} coverage
python setup.py install

- name: Run coverage
Expand All @@ -33,12 +41,18 @@ jobs:
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1

unit-tests-dj4:

unit-tests-future-versions:
# Runs for all Django/Python versions which are not yet supported
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10']
django-version: [
'Django==4.1',
'https://github.com/django/django/archive/main.tar.gz'
]
os: [
ubuntu-20.04,
]
Expand All @@ -53,11 +67,12 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "django>=4.0,<4.1" coverage
pip install ${{ matrix.django-version }} coverage
python setup.py install

- name: Run coverage
run: coverage run setup.py test
continue-on-error: true

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Changelog
unreleased
==========

* Start testing Django 4.1 and Django's `main` branch

3.0.1 2022-02-01
================

Expand Down
10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ envlist =
flake8
isort
py{37,38,39}-dj{22,31,32}
py{38,39,310}-dj{31,32,40}
py{38,39,310}-dj{31,32,40,41,main}

skip_missing_interpreters=True

Expand All @@ -14,11 +14,19 @@ deps =
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
djmain: https://github.com/django/django/archive/main.tar.gz
commands =
{envpython} --version
{env:COMMAND:coverage} erase
{env:COMMAND:coverage} run setup.py test
{env:COMMAND:coverage} report
ignore_outcome =
dj41: True
djmain: True
ignore_errors =
dj41: True
djmain: True

[testenv:flake8]
deps = flake8
Expand Down