Skip to content

Commit

Permalink
Merge pull request #64 from peopledoc/dj4-tox-fix
Browse files Browse the repository at this point in the history
Fixing Django 4.0 definition in tox.ini
  • Loading branch information
mike-perdide committed Jan 6, 2022
2 parents 7c919cd + dd4db81 commit 1eac5d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -11,6 +11,9 @@ on:
jobs:
build:

# When testing new Python or Django versions, one should use the
# filterwarnings definition of setup.cfg to turn deprecation warnings
# into errors.
strategy:
matrix:
include:
Expand Down
5 changes: 4 additions & 1 deletion setup.cfg
Expand Up @@ -60,7 +60,10 @@ testpaths =
django_genericfilters/tests
demoproject/tests.py
filterwarnings =
error
# Uncomment below when testing a new version of Python or Django so that
# DeprecationWarnings can be treated as errors
# error
ignore:.*distutils Version classes are deprecated.*:DeprecationWarning

DJANGO_SETTINGS_MODULE = demoproject.settings

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -23,7 +23,7 @@ deps =
django30: psycopg2<2.9 # https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be
django31: Django==3.1.*
django32: Django==3.2.*
django40: Django==3.2.*
django40: Django==4.0.*
commands =
pytest {posargs}
passenv =
Expand Down

0 comments on commit 1eac5d3

Please sign in to comment.