Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Test against django 5.1 #1476

Merged
merged 5 commits into from
Sep 9, 2024
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
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
Loading