Skip to content

Commit 60537e6

Browse files
markswebfsbraun
andauthored
ci: Test against django 5.1 (#1476)
* 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 <fsbraun@gmx.de>
1 parent b38ef8f commit 60537e6

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.github/workflows/test.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
requirements-file: [
1313
django-4.2.txt,
1414
django-5.0.txt,
15+
django-5.1.txt,
1516
django-main.txt,
1617
]
1718
custom-image-model: [false, true]
@@ -23,6 +24,10 @@ jobs:
2324
python-version: 3.8
2425
- requirements-file: django-5.0.txt
2526
python-version: 3.9
27+
- requirements-file: django-5.1.txt
28+
python-version: 3.8
29+
- requirements-file: django-5.1.txt
30+
python-version: 3.9
2631
- requirements-file: django-main.txt
2732
python-version: 3.8
2833
- requirements-file: django-main.txt
@@ -43,11 +48,11 @@ jobs:
4348
run: |
4449
python -m pip install --upgrade pip
4550
pip install -r tests/requirements/${{ matrix.requirements-file }}
46-
python setup.py install
51+
pip install -e .
4752
- name: Enable the custom image model
4853
run: echo "CUSTOM_IMAGE=custom_image.Image" >> $GITHUB_ENV
4954
if: ${{ matrix.custom-image-model }}
5055
- name: Run coverage
51-
run: coverage run tests/settings.py
56+
run: coverage run ./tests/settings.py
5257
- name: Upload Coverage to Codecov
5358
uses: codecov/codecov-action@v1

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ for all the details on how to install, configure and use django-filer.
5454
:target: http://badge.fury.io/py/django-filer
5555
.. |coverage| image:: https://codecov.io/gh/django-cms/django-filer/branch/master/graph/badge.svg
5656
:target: https://codecov.io/gh/django-cms/django-filer
57-
.. |python| image:: https://img.shields.io/badge/python-3.8+-blue.svg
57+
.. |python| image:: https://img.shields.io/badge/python-3.10+-blue.svg
5858
:target: https://pypi.org/project/django-filer/
5959
.. |django| image:: https://img.shields.io/badge/django-3.2+-blue.svg
6060
:target: https://www.djangoproject.com/

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
REQUIREMENTS = [
8-
'django>=3.2,<5.1',
8+
'django>=3.2',
99
'django-polymorphic',
1010
'easy-thumbnails[svg]',
1111
]

tests/requirements/django-5.1.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-r base.txt
2+
3+
django>=5.1a1,<5.2
4+
django_polymorphic>=3.1

0 commit comments

Comments
 (0)