diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index bd852b0..459db7f 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -12,16 +12,26 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: ["3.11", "3.12", "3.13"] + steps: - - uses: actions/checkout@v4 - - name: Install Python + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements-dev.txt pip install ruff - - name: Run Ruff + echo "RUFF_VERSION=$(ruff --version)" >> "${GITHUB_ENV}" + + - name: Runing Ruff ${{ env.RUFF_VERSION }} run: ruff check --output-format=github . diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 94d2095..abdfaee 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,17 +12,26 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: ["3.11", "3.12", "3.13"] + steps: - - uses: actions/checkout@v4 - - name: Install Python + - name: Check out repository + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: ${{ matrix.python-version }} + - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements-dev.txt pip install codecov + - name: Run Tests with coverage env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b980b4f..0e98722 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.0 + rev: v0.7.3 hooks: - id: ruff - repo: local diff --git a/pyproject.toml b/pyproject.toml index 459f42b..5e8f182 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,11 +9,17 @@ readme = "README.md" license = { file = "LICENSE" } requires-python = ">=3.11" classifiers = [ - "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", + "Intended Audience :: Developers", "Development Status :: 3 - Alpha", + "Natural Language :: English", ] keywords = ["django", "django admin", "list filter"] @@ -23,4 +29,5 @@ dev = ["Django", "pytest", "pytest-django", "pytest-factoryboy", "pytest-cov"] [project.urls] Homepage = "https://github.com/vigo/django-admin-list-filter" +Repository = "https://github.com/vigo/django-admin-list-filter" Issues = "https://github.com/vigo/django-admin-list-filter/issues"