Skip to content
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
6 changes: 3 additions & 3 deletions .github/workflows/screenshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
python-version: [3.9] # dockerfile uses 3.8
django-version: ['2.2', '3.2']
os: [
ubuntu-20.04,
ubuntu-22.04,
]

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,38 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11']
python-version: [ '3.9', '3.10', '3.11', '3.14']
requirements-file: [
django-2.2.txt,
django-3.2.txt,
django-4.2.txt,
django-5.0.txt,
]
os: [
ubuntu-20.04,
ubuntu-24.04,
]
exclude:
- requirements-file: django-5.0.txt
python-version: 3.8
- requirements-file: django-2.2.txt
python-version: '3.14'
- requirements-file: django-3.2.txt
python-version: '3.14'
- requirements-file: django-5.0.txt
python-version: 3.9

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements/${{ matrix.requirements-file }}
python setup.py install
pip install .

- name: Run coverage
run: coverage run setup.py test
run: coverage run tests/settings.py

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v4
7 changes: 3 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
args: ["--py39-plus"]

- repo: https://github.com/adamchainz/django-upgrade
rev: '1.32.0'
rev: '1.33.0'
hooks:
- id: django-upgrade
args: [--target-version, "3.2"]
Expand All @@ -39,7 +39,7 @@ repos:
- id: codespell

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.6 # Use the desired Ruff version
rev: v0.16.10 # Use the desired Ruff version
hooks:
- id: ruff-check # For linting checks
args: [--fix] # Optional: automatically fix fixable issues
Expand All @@ -50,5 +50,4 @@ repos:
hooks:
- id: rstcheck
additional_dependencies:
- sphinx==6.1.3
- tomli==2.0.1
- sphinx==8.2.3
7 changes: 4 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.1",
Expand Down Expand Up @@ -62,7 +63,7 @@
description="Adds pretty CSS styles for the django CMS admin interface.",
long_description=long_description,
packages=find_packages(exclude=["preview", "tests"]),
python_requires=">=3.7",
python_requires=">=3.9",
include_package_data=True,
zip_safe=False,
install_requires=REQUIREMENTS,
Expand Down
Loading