Skip to content

Commit 06a02f0

Browse files
committed
ci: add Django 5 integration test job
Add separate CI job for Django 5 integration tests that verify: - Async user access with request.auser() - Exception capture via process_exception() - Real ASGI application behavior with httpx AsyncClient Runs on Python 3.12 with pinned Django 5.2.7 dependencies in isolated test_project_django5 environment. Complements existing unit tests that run across Python 3.9-3.13.
1 parent 930a5d8 commit 06a02f0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,34 @@ jobs:
6868
- name: Run posthog tests
6969
run: |
7070
pytest --verbose --timeout=30
71+
72+
django5-integration:
73+
name: Django 5 integration tests
74+
runs-on: ubuntu-latest
75+
76+
steps:
77+
- uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
78+
with:
79+
fetch-depth: 1
80+
81+
- name: Set up Python 3.12
82+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55
83+
with:
84+
python-version: 3.12
85+
86+
- name: Install uv
87+
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
88+
with:
89+
enable-cache: true
90+
pyproject-file: 'test_project_django5/pyproject.toml'
91+
92+
- name: Install Django 5 test project dependencies
93+
shell: bash
94+
working-directory: test_project_django5
95+
run: |
96+
UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync
97+
98+
- name: Run Django 5 middleware integration tests
99+
working-directory: test_project_django5
100+
run: |
101+
uv run pytest test_middleware.py test_exception_capture.py --verbose

0 commit comments

Comments
 (0)