Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/workflows/test-integrations-web-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,6 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-django"
- name: Test flask
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-flask"
- name: Test starlette
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-starlette"
- name: Test fastapi
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi"
- name: Upload coverage data
if: ${{ !cancelled() }}
continue-on-error: true
Expand Down
42 changes: 7 additions & 35 deletions .github/workflows/test-integrations-web-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t","3.15","3.15t"]
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.13","3.14","3.14t","3.15","3.15t"]
os: [ubuntu-22.04]
env:
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
Expand All @@ -37,46 +37,18 @@ jobs:
- name: Setup Test Env
run: |
uv sync
- name: Test aiohttp
- name: Test flask
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp"
- name: Test asgi
./scripts/runtox.sh "py${{ matrix.python-version }}-flask"
- name: Test starlette
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-asgi"
- name: Test bottle
./scripts/runtox.sh "py${{ matrix.python-version }}-starlette"
- name: Test fastapi
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-bottle"
- name: Test falcon
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-falcon"
- name: Test litestar
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-litestar"
- name: Test pyramid
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid"
- name: Test quart
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-quart"
- name: Test sanic
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-sanic"
- name: Test starlite
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-starlite"
- name: Test tornado
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-tornado"
./scripts/runtox.sh "py${{ matrix.python-version }}-fastapi"
- name: Upload coverage data
if: ${{ !cancelled() }}
continue-on-error: true
Expand Down
93 changes: 93 additions & 0 deletions .github/workflows/test-integrations-web-3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
# Do not edit this YAML file. This file is generated automatically by executing
# python scripts/split_tox_gh_actions/split_tox_gh_actions.py
# The template responsible for it is in
# scripts/split_tox_gh_actions/templates/base.jinja
name: Test Web 3
# Reusable workflow. It is invoked by the top-level `test.yml` orchestrator.
on:
workflow_call:
permissions:
contents: read
actions: read
jobs:
test-web_3:
name: Web 3
timeout-minutes: 30
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t","3.15","3.15t"]
os: [ubuntu-22.04]
env:
# 3.6/3.7 run in the python:X.Y container; tell uv to use that system Python.
TOX_UV_PYTHON_PREFERENCE: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && 'only-system' || 'managed' }}
container: ${{ (matrix.python-version == '3.6' || matrix.python-version == '3.7') && format('python:{0}', matrix.python-version) || null }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
enable-cache: false
- name: Mark workspace safe for git (3.6/3.7 container)
# needed to make git rev-parse work in the containers
# subprocesses (e.g. sentry_sdk.utils.get_git_revision) can run git.
if: ${{ matrix.python-version == '3.6' || matrix.python-version == '3.7' }}
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Setup Test Env
run: |
uv sync
- name: Test aiohttp
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-aiohttp"
- name: Test asgi
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-asgi"
- name: Test bottle
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-bottle"
- name: Test falcon
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-falcon"
- name: Test litestar
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-litestar"
- name: Test pyramid
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-pyramid"
- name: Test quart
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-quart"
- name: Test sanic
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-sanic"
- name: Test starlite
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-starlite"
- name: Test tornado
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-tornado"
- name: Upload coverage data
if: ${{ !cancelled() }}
continue-on-error: true
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: coverage-web_3-${{ matrix.python-version }}
# .coverage-* / .junitxml-* are dotfiles, excluded by default
include-hidden-files: true
path: |
.coverage-sentry-*
.junitxml-*
if-no-files-found: 'ignore'
retention-days: 1
overwrite: true
7 changes: 7 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ jobs:
needs: files-changed
if: ${{ needs.files-changed.outputs.code == 'true' }}
uses: ./.github/workflows/test-integrations-web-2.yml
web_3:
name: Web 3
needs: files-changed
if: ${{ needs.files-changed.outputs.code == 'true' }}
uses: ./.github/workflows/test-integrations-web-3.yml
misc:
name: Misc
needs: files-changed
Expand All @@ -153,6 +158,7 @@ jobs:
- tasks
- web_1
- web_2
- web_3
- misc
# Report whatever coverage exists, even if some test jobs failed.
if: ${{ !cancelled() && needs.files-changed.outputs.code == 'true' }}
Expand Down Expand Up @@ -201,6 +207,7 @@ jobs:
- tasks
- web_1
- web_2
- web_3
- misc
# Always run so it can gate merges even when a dependency failed.
if: always()
Expand Down
4 changes: 3 additions & 1 deletion scripts/split_tox_gh_actions/split_tox_gh_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,13 @@
],
"Web 1": [
"django",
],
"Web 2": [
"flask",
"starlette",
"fastapi",
],
"Web 2": [
"Web 3": [
"aiohttp",
"asgi",
"bottle",
Expand Down
8 changes: 6 additions & 2 deletions tox.ini

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading