Skip to content

Commit 9ece90b

Browse files
committed
feat: Add django 5.1 tests
1 parent 2e9e6fd commit 9ece90b

File tree

7 files changed

+22
-13
lines changed

7 files changed

+22
-13
lines changed

.github/workflows/frontend.yml

-2
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,3 @@ jobs:
2020
run: webpack --mode=production
2121
- name: Run jest
2222
run: npx jest --coverage
23-
- name: Upload coverage to Codecov
24-
uses: codecov/codecov-action@v5

.github/workflows/test.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
requirements-file: [
1313
dj42_cms311.txt,
1414
dj42_cms41.txt,
15-
dj50_cms41.txt
15+
dj50_cms41.txt,
16+
dj51_cms41.txt
1617
]
1718
os: [
1819
ubuntu-latest,

README.rst

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
djangocms-text
22
==============
33

4-
|pypi| |coverage| |python| |django| |djangocms| |djangocms4|
4+
|pypi| |coverage| |precommit| |python| |django| |djangocms| |djangocms4|
55

66
``djangocms-text`` is a flexible and extensible rich text editing solution for Django
77
CMS. This package is designed as a replacement for ``djangocms-text-ckeditor``,
@@ -327,9 +327,12 @@ Acknowledgments
327327
:target: https://codecov.io/gh/django-cms/djangocms-text
328328
.. |python| image:: https://img.shields.io/badge/python-3.10+-blue.svg
329329
:target: https://pypi.org/project/djangocms-text/
330-
.. |django| image:: https://img.shields.io/badge/django-3.2+-blue.svg
330+
.. |django| image:: https://img.shields.io/badge/django-4.2+-blue.svg
331331
:target: https://www.djangoproject.com/
332332
.. |djangocms| image:: https://img.shields.io/badge/django%20CMS-3.11%2B-blue.svg
333333
:target: https://www.django-cms.org/
334334
.. |djangocms4| image:: https://img.shields.io/badge/django%20CMS-4-blue.svg
335335
:target: https://www.django-cms.org/
336+
.. |precommit| image:: https://results.pre-commit.ci/badge/github/django-cms/djangocms-text/main.svg
337+
:target: https://results.pre-commit.ci/latest/github/django-cms/djangocms-text/main
338+
:alt: pre-commit.ci status

djangocms_text/apps.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def discover_inline_editable_models():
5454
return inline_models
5555

5656

57-
def check_ckeditor_settings(app_configs, **kwargs):
57+
def check_ckeditor_settings(app_configs, **kwargs): # pragma: no cover
5858
from django.conf import settings
5959

6060
change_msg = (

tests/requirements/dj50_cms41.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-r base.txt
22

3-
Django~=5.0rc1,<5.1
3+
Django~=5.0,<5.1
44
django-cms>=4.1,<4.2

tests/requirements/dj51_cms41.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-r base.txt
2+
3+
Django>=5.1,<5.2
4+
django-cms>=4.1,<4.2

tox.ini

+9-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
envlist =
33
frontend
44
py{310,311,312}-dj{42}-cms{311,41}
5-
py{310,311,312}-dj{50}-cms{311,41}
5+
py{310,311,312}-dj{50,51}-cms{41}
66

77
skip_missing_interpreters=True
88

@@ -15,17 +15,20 @@ deps =
1515
dj52: Django>=5.2,<6.0
1616
cms311: django-cms>=3.11,<4
1717
cms40: git+https://github.com/django-cms/django-cms@release/4.0.1.x
18-
cms41: git+https://github.com/django-cms/django-cms@develop-4
18+
cms41: django-cms>=4.1,<4.2
1919

2020
commands =
2121
{envpython} --version
2222
{env:COMMAND:coverage} erase
23-
{env:COMMAND:coverage} run runtests.py
23+
{env:COMMAND:coverage} run -m pytest
2424
{env:COMMAND:coverage} report
2525

2626
[testenv:frontend]
27-
whitelist_externals =
27+
allowlist_externals =
2828
nvm
29-
npm install
29+
npm
3030
webpack
31-
commands = webpack
31+
npx
32+
commands =
33+
webpack
34+
npx jest --coverage

0 commit comments

Comments
 (0)