diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5bc557826..98c452bd1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,7 @@ jobs: requirements-file: [ django-4.2.txt, django-5.0.txt, + django-5.1.txt, django-main.txt, ] custom-image-model: [false, true] @@ -23,6 +24,10 @@ jobs: python-version: 3.8 - requirements-file: django-5.0.txt python-version: 3.9 + - requirements-file: django-5.1.txt + python-version: 3.8 + - requirements-file: django-5.1.txt + python-version: 3.9 - requirements-file: django-main.txt python-version: 3.8 - requirements-file: django-main.txt @@ -43,11 +48,11 @@ jobs: run: | python -m pip install --upgrade pip pip install -r tests/requirements/${{ matrix.requirements-file }} - python setup.py install + pip install -e . - name: Enable the custom image model run: echo "CUSTOM_IMAGE=custom_image.Image" >> $GITHUB_ENV if: ${{ matrix.custom-image-model }} - name: Run coverage - run: coverage run tests/settings.py + run: coverage run ./tests/settings.py - name: Upload Coverage to Codecov uses: codecov/codecov-action@v1 diff --git a/README.rst b/README.rst index 6770fb8d9..218660a01 100644 --- a/README.rst +++ b/README.rst @@ -54,7 +54,7 @@ for all the details on how to install, configure and use django-filer. :target: http://badge.fury.io/py/django-filer .. |coverage| image:: https://codecov.io/gh/django-cms/django-filer/branch/master/graph/badge.svg :target: https://codecov.io/gh/django-cms/django-filer -.. |python| image:: https://img.shields.io/badge/python-3.8+-blue.svg +.. |python| image:: https://img.shields.io/badge/python-3.10+-blue.svg :target: https://pypi.org/project/django-filer/ .. |django| image:: https://img.shields.io/badge/django-3.2+-blue.svg :target: https://www.djangoproject.com/ diff --git a/setup.py b/setup.py index 69deb6952..abc58fa9d 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ REQUIREMENTS = [ - 'django>=3.2,<5.1', + 'django>=3.2', 'django-polymorphic', 'easy-thumbnails[svg]', ] diff --git a/tests/requirements/django-5.1.txt b/tests/requirements/django-5.1.txt new file mode 100644 index 000000000..83b6ef17d --- /dev/null +++ b/tests/requirements/django-5.1.txt @@ -0,0 +1,4 @@ +-r base.txt + +django>=5.1a1,<5.2 +django_polymorphic>=3.1