Skip to content

Commit bafc4e0

Browse files
authored
chore: Remove deprecated django CMS references (#465)
* chore: Remove legacy versioning menu * fix linting issue * Update test matrix * Fix test against CMS main branch * Test against latest postgres (for newer Django versions) * Reduce test runs * Update coverage rules * Move setup config to pyproject.toml * Add toml option to requirements
1 parent a132204 commit bafc4e0

File tree

11 files changed

+268
-261
lines changed

11 files changed

+268
-261
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: CodeCov
22

3-
on: [push, pull_request]
3+
on: [pull_request]
44

55
concurrency:
66
group: ${{ github.workflow }}-${{ github.ref }}
@@ -12,18 +12,27 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two
15+
python-version: [ 3.9, "3.10", "3.11", "3.12" ]
1616
requirements-file: [
17-
dj32_cms41.txt,
1817
dj42_cms41.txt,
1918
dj50_cms41.txt,
2019
dj51_cms41.txt,
21-
]
20+
dj52_cms41.txt,
21+
dj52_cms50.txt,
22+
]
2223
exclude:
2324
- requirements-file: dj50_cms41.txt
2425
python-version: 3.9
2526
- requirements-file: dj51_cms41.txt
2627
python-version: 3.9
28+
- requirements-file: dj52_cms41.txt
29+
python-version: 3.9
30+
- requirements-file: dj52_cms41.txt
31+
python-version: 3.10
32+
- requirements-file: dj52_cms50.txt
33+
python-version: 3.9
34+
- requirements-file: dj52_cms50.txt
35+
python-version: 3.10
2736

2837
steps:
2938
- uses: actions/checkout@v4
@@ -49,22 +58,16 @@ jobs:
4958
strategy:
5059
fail-fast: false
5160
matrix:
52-
python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two
61+
python-version: [ "3.11", "3.12", "3.13" ]
5362
requirements-file: [
54-
dj32_cms41.txt,
5563
dj42_cms41.txt,
56-
dj50_cms41.txt,
57-
dj51_cms41.txt,
64+
dj52_cms41.txt,
65+
dj52_cms50.txt,
5866
]
59-
exclude:
60-
- requirements-file: dj50_cms41.txt
61-
python-version: 3.9
62-
- requirements-file: dj51_cms41.txt
63-
python-version: 3.9
6467

6568
services:
6669
postgres:
67-
image: postgres:13
70+
image: postgres:latest
6871
env:
6972
POSTGRES_USER: postgres
7073
POSTGRES_PASSWORD: postgres
@@ -100,12 +103,11 @@ jobs:
100103
strategy:
101104
fail-fast: false
102105
matrix:
103-
python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two
106+
python-version: [ "3.11", "3.12", "3.13" ]
104107
requirements-file: [
105-
dj32_cms41.txt,
106108
dj42_cms41.txt,
107-
dj50_cms41.txt,
108-
dj51_cms41.txt,
109+
dj52_cms41.txt,
110+
dj52_cms50.txt,
109111
]
110112
exclude:
111113
- requirements-file: dj50_cms41.txt
@@ -149,10 +151,10 @@ jobs:
149151
strategy:
150152
fail-fast: false
151153
matrix:
152-
python-version: ['3.12']
153-
requirements-file: ['dj51_cms41.txt']
154+
python-version: ['3.13']
155+
requirements-file: ['dj52_cms50.txt']
154156
cms-version: [
155-
'https://github.com/django-cms/django-cms/archive/develop-4.tar.gz'
157+
'https://github.com/django-cms/django-cms/archive/main.tar.gz'
156158
]
157159
os: [
158160
ubuntu-latest,
@@ -183,16 +185,14 @@ jobs:
183185
strategy:
184186
fail-fast: false
185187
matrix:
186-
python-version: [ "3.12" ]
188+
python-version: [ "3.13" ]
187189
cms-version: [
188-
'https://github.com/django-cms/django-cms/archive/develop-4.tar.gz'
190+
'https://github.com/django-cms/django-cms/archive/main.tar.gz'
189191
]
190192
django-version: [
191193
'https://github.com/django/django/archive/main.tar.gz'
192194
]
193-
requirements-file: [
194-
requirements_base.txt,
195-
]
195+
requirements-file: ['dj52_cms50.txt']
196196

197197
steps:
198198
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)