Skip to content

Commit 30ab158

Browse files
authored
improve actions + package toml (#14)
1 parent 1b22df7 commit 30ab158

File tree

4 files changed

+35
-9
lines changed

4 files changed

+35
-9
lines changed

.github/workflows/ruff.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,26 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
strategy:
16+
max-parallel: 4
17+
matrix:
18+
python-version: ["3.11", "3.12", "3.13"]
19+
1520
steps:
16-
- uses: actions/checkout@v4
17-
- name: Install Python
21+
- name: Check out repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Python ${{ matrix.python-version }}
1825
uses: actions/setup-python@v5
1926
with:
20-
python-version: "3.11"
27+
python-version: ${{ matrix.python-version }}
28+
2129
- name: Install dependencies
2230
run: |
2331
python -m pip install --upgrade pip
2432
pip install -r requirements-dev.txt
2533
pip install ruff
26-
- name: Run Ruff
34+
echo "RUFF_VERSION=$(ruff --version)" >> "${GITHUB_ENV}"
35+
36+
- name: Runing Ruff ${{ env.RUFF_VERSION }}
2737
run: ruff check --output-format=github .

.github/workflows/test.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,26 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
strategy:
16+
max-parallel: 4
17+
matrix:
18+
python-version: ["3.11", "3.12", "3.13"]
19+
1520
steps:
16-
- uses: actions/checkout@v4
17-
- name: Install Python
21+
- name: Check out repository
22+
uses: actions/checkout@v4
23+
24+
- name: Set up Python ${{ matrix.python-version }}
1825
uses: actions/setup-python@v5
1926
with:
20-
python-version: "3.11"
27+
python-version: ${{ matrix.python-version }}
28+
2129
- name: Install dependencies
2230
run: |
2331
python -m pip install --upgrade pip
2432
pip install -r requirements-dev.txt
2533
pip install codecov
34+
2635
- name: Run Tests with coverage
2736
env:
2837
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.6.0
3+
rev: v0.7.3
44
hooks:
55
- id: ruff
66
- repo: local

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@ readme = "README.md"
99
license = { file = "LICENSE" }
1010
requires-python = ">=3.11"
1111
classifiers = [
12-
"Programming Language :: Python :: 3",
12+
"Programming Language :: Python :: 3 :: Only",
13+
"Programming Language :: Python :: 3.11",
14+
"Programming Language :: Python :: 3.12",
15+
"Programming Language :: Python :: 3.13",
1316
"License :: OSI Approved :: MIT License",
1417
"Operating System :: OS Independent",
1518
"Framework :: Django :: 5.0",
19+
"Framework :: Django :: 5.1",
20+
"Intended Audience :: Developers",
1621
"Development Status :: 3 - Alpha",
22+
"Natural Language :: English",
1723
]
1824
keywords = ["django", "django admin", "list filter"]
1925

@@ -23,4 +29,5 @@ dev = ["Django", "pytest", "pytest-django", "pytest-factoryboy", "pytest-cov"]
2329

2430
[project.urls]
2531
Homepage = "https://github.com/vigo/django-admin-list-filter"
32+
Repository = "https://github.com/vigo/django-admin-list-filter"
2633
Issues = "https://github.com/vigo/django-admin-list-filter/issues"

0 commit comments

Comments
 (0)