Skip to content

Commit 65e0022

Browse files
github-actions[bot]sentrivanaclaude
authored
ci: 🤖 Update test matrix with new releases (02/24) (#5524)
Update our test matrix with new releases of integrated frameworks and libraries. ## How it works - Scan PyPI for all supported releases of all frameworks we have a dedicated test suite for. - Pick a representative sample of releases to run our test suite against. We always test the latest and oldest supported version. - Update [tox.ini](https://github.com/getsentry/sentry-python/blob/master/tox.ini) with the new releases. ## Action required - If CI passes on this PR, it's safe to approve and merge. It means our integrations can handle new versions of frameworks that got pulled in. - If CI doesn't pass on this PR, this points to an incompatibility of either our integration or our test setup with a new version of a framework. - Check what the failures look like and either fix them, or update the [test config](https://github.com/getsentry/sentry-python/blob/master/scripts/populate_tox/config.py) and rerun [scripts/generate-test-files.sh](https://github.com/getsentry/sentry-python/blob/master/scripts/generate-test-files.sh). See [scripts/populate_tox/README.md](https://github.com/getsentry/sentry-python/blob/master/scripts/populate_tox/README.md) for what configuration options are available. _____________________ _🤖 This PR was automatically created using [a GitHub action](https://github.com/getsentry/sentry-python/blob/master/.github/workflows/update-tox.yml)._ --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Ivana Kellyer <ivana.kellyer@sentry.io> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 11fbde0 commit 65e0022

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎tests/integrations/starlette/test_starlette.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,12 @@ async def _render_template(request):
144144
"request": request,
145145
"msg": "Hello Template World!",
146146
}
147-
return templates.TemplateResponse("trace_meta.html", template_context)
147+
if STARLETTE_VERSION >= (1,):
148+
return templates.TemplateResponse(
149+
request, "trace_meta.html", template_context
150+
)
151+
else:
152+
return templates.TemplateResponse("trace_meta.html", template_context)
148153

149154
all_methods = [
150155
"CONNECT",

‎tox.ini‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ envlist =
254254
{py3.7,py3.10,py3.11}-starlette-v0.28.0
255255
{py3.8,py3.12,py3.13}-starlette-v0.40.0
256256
{py3.10,py3.13,py3.14,py3.14t}-starlette-v0.52.1
257+
{py3.10,py3.13,py3.14,py3.14t}-starlette-v1.0.0rc1
257258

258259
{py3.6,py3.9,py3.10}-fastapi-v0.79.1
259260
{py3.7,py3.10,py3.11}-fastapi-v0.97.0
@@ -676,6 +677,7 @@ deps =
676677
starlette-v0.28.0: starlette==0.28.0
677678
starlette-v0.40.0: starlette==0.40.0
678679
starlette-v0.52.1: starlette==0.52.1
680+
starlette-v1.0.0rc1: starlette==1.0.0rc1
679681
starlette: pytest-asyncio
680682
starlette: python-multipart
681683
starlette: requests

0 commit comments

Comments
 (0)