Skip to content

Commit

Permalink
ci: Test against django 5.1 (#1476)
Browse files Browse the repository at this point in the history
* ci: Test against django 5.1

* Update README.rst

* fix: Update test.yml to not call `setup.py test`

* Update test.yml to exclude Django 5 tests for py38, 39

---------

Co-authored-by: Fabian Braun <[email protected]>
  • Loading branch information
marksweb and fsbraun authored Sep 9, 2024
1 parent b38ef8f commit 60537e6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


REQUIREMENTS = [
'django>=3.2,<5.1',
'django>=3.2',
'django-polymorphic',
'easy-thumbnails[svg]',
]
Expand Down
4 changes: 4 additions & 0 deletions tests/requirements/django-5.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
-r base.txt

django>=5.1a1,<5.2
django_polymorphic>=3.1

0 comments on commit 60537e6

Please sign in to comment.