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
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
strategy:
matrix:
os:
- ubuntu-18.04
python-version: [ 2.7,3.4,3.5,3.6 ]
toxenv: [ django-18,django-19,django-110,django-111 ]
- ubuntu-20.04
python-version: [3.8 ]
toxenv: [ py38-django32 ]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ MANIFEST
htmlcov
*.egg-info
.tox/
venv
3 changes: 2 additions & 1 deletion test_project/test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os, tempfile

BASE_DIR = os.path.dirname(os.path.dirname(__file__))


Expand Down Expand Up @@ -65,7 +66,7 @@
tempfile.mkdtemp(),
)

MIDDLEWARE_CLASSES = (
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
Expand Down
6 changes: 3 additions & 3 deletions test_project/test_project/urls.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from django.conf.urls import include, url

from django.conf.urls import url
from django.contrib import admin

admin.autodiscover()

urlpatterns = [
# Examples:
# url(r'^$', 'test_project.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),

url(r'^admin/', include(admin.site.urls)),
url(r'^admin/', admin.site.urls),
]
13 changes: 3 additions & 10 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
[tox]
envlist =
{py27,py34,py35,py36}-django-{18,19,110,111}
skip_missing_interpreters = True
py38-django{32}

[testenv]
changedir = {envtmpdir}
basepython =
py27: python2.7
py34: python3.4
py35: python3.5
py36: python3.6
py38: python3.8
commands =
coverage run --rcfile={toxinidir}/.coveragerc {toxinidir}/test_project/manage.py test --settings=test_project.settings require -v 2
deps =
django-18: Django>=1.8,<1.9
django-19: Django>=1.9,<1.10
django-110: Django>=1.10,<1.11
django-111: Django>=1.11,<2.0
django32: Django>=3.2,<4.0
tox>=2.0.0
coverage