From 2c93054b32039b01ce4f258205401effe831c8e3 Mon Sep 17 00:00:00 2001 From: p1c2u Date: Wed, 18 Feb 2026 11:17:58 +0000 Subject: [PATCH] Django 6 support --- .github/workflows/contrib-tests.yml | 32 +++++++++++++++++++++++++++++ .github/workflows/python-tests.yml | 12 +++++++++++ README.md | 2 +- docs/integrations/django.md | 2 +- 4 files changed, 46 insertions(+), 2 deletions(-) diff --git a/.github/workflows/contrib-tests.yml b/.github/workflows/contrib-tests.yml index 4d745db9..8f65d9c1 100644 --- a/.github/workflows/contrib-tests.yml +++ b/.github/workflows/contrib-tests.yml @@ -2,8 +2,28 @@ name: CI / Contrib / Tests on: push: + paths: + - openapi_core/** + - tests/integration/contrib/** + - tests/unit/contrib/** + - tests/integration/conftest.py + - tests/integration/data/** + - pyproject.toml + - poetry.lock + - .github/workflows/contrib-tests.yml + - .github/workflows/python-tests.yml pull_request: types: [opened, synchronize] + paths: + - openapi_core/** + - tests/integration/contrib/** + - tests/unit/contrib/** + - tests/integration/conftest.py + - tests/integration/data/** + - pyproject.toml + - poetry.lock + - .github/workflows/contrib-tests.yml + - .github/workflows/python-tests.yml concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -40,6 +60,11 @@ jobs: unit_path: tests/unit/contrib/django spec: ">=5.0,<6.0" label: "django-5.x" + - contrib: django + integration_path: tests/integration/contrib/django + unit_path: tests/unit/contrib/django + spec: ">=6.0,<7.0" + label: "django-6.x" - contrib: falcon integration_path: tests/integration/contrib/falcon spec: ">=4.0,<5.0" @@ -80,6 +105,13 @@ jobs: spec: "" label: "werkzeug-default" python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + exclude: + - target: + label: "django-6.x" + python-version: "3.10" + - target: + label: "django-6.x" + python-version: "3.11" fail-fast: false steps: - uses: actions/checkout@v6 diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index be081deb..a98c6563 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -5,8 +5,20 @@ name: CI / Core / Tests on: push: + paths-ignore: + - openapi_core/contrib/** + - tests/integration/contrib/** + - tests/unit/contrib/** + - docs/integrations/** + - .github/workflows/contrib-tests.yml pull_request: types: [opened, synchronize] + paths-ignore: + - openapi_core/contrib/** + - tests/integration/contrib/** + - tests/unit/contrib/** + - docs/integrations/** + - .github/workflows/contrib-tests.yml permissions: contents: read diff --git a/README.md b/README.md index e3d1c562..6ed0e2b2 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Supported [Integrations](https://openapi-core.readthedocs.io/en/latest/integrati | Integration | Version(s) | | --- | --- | | [AIOHTTP](https://openapi-core.readthedocs.io/en/latest/integrations/aiohttp/) | versions 3.8+ and 3.11+ tracks | -| [Django](https://openapi-core.readthedocs.io/en/latest/integrations/django/) | versions 4 and 5 | +| [Django](https://openapi-core.readthedocs.io/en/latest/integrations/django/) | versions 4, 5, and 6 | | [Falcon](https://openapi-core.readthedocs.io/en/latest/integrations/falcon/) | version 4 | | [FastAPI](https://openapi-core.readthedocs.io/en/latest/integrations/fastapi/) | versions 0.11x and 0.12x | | [Flask](https://openapi-core.readthedocs.io/en/latest/integrations/flask/) | versions 2 and 3 | diff --git a/docs/integrations/django.md b/docs/integrations/django.md index 57e8a47a..d730167f 100644 --- a/docs/integrations/django.md +++ b/docs/integrations/django.md @@ -1,7 +1,7 @@ # Django This section describes the integration with the [Django](https://www.djangoproject.com) web framework. -The integration supports Django version 4 and 5. +The integration supports Django version 4, 5, and 6. ## Middleware