-
-
Notifications
You must be signed in to change notification settings - Fork 136
Integrations separate CI workflows #1100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
711d62b
Integrations separate CI workflows
p1c2u 2d72e1a
Integration reusable workflow
p1c2u 5bce5d4
Add small things
p1c2u 20e714e
Github output fix
p1c2u 80aa54b
Permissions fix
p1c2u 78b5fc6
One integration workflow
p1c2u 2b50cfb
Workflows naming normalization
p1c2u 66973df
Integrations versions tighten
p1c2u File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Integration aiohttp | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| integration-aiohttp: | ||
| uses: ./.github/workflows/integration-reusable.yml | ||
| with: | ||
| integration: aiohttp | ||
| secrets: inherit | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Integration django | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| integration-django: | ||
| uses: ./.github/workflows/integration-reusable.yml | ||
| with: | ||
| integration: django | ||
|
|
||
| secrets: inherit | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Integration falcon | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| integration-falcon: | ||
| uses: ./.github/workflows/integration-reusable.yml | ||
| with: | ||
| integration: falcon | ||
|
|
||
| secrets: inherit | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Integration fastapi | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| integration-fastapi: | ||
| uses: ./.github/workflows/integration-reusable.yml | ||
| with: | ||
| integration: fastapi | ||
|
|
||
| secrets: inherit | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Integration flask | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| integration-flask: | ||
| uses: ./.github/workflows/integration-reusable.yml | ||
| with: | ||
| integration: flask | ||
|
|
||
| secrets: inherit | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Integration requests | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| integration-requests: | ||
| uses: ./.github/workflows/integration-reusable.yml | ||
| with: | ||
| integration: requests | ||
|
|
||
| secrets: inherit | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| name: Integration reusable | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| integration: | ||
| description: Integration name under tests/integration/contrib | ||
| required: true | ||
| type: string | ||
|
|
||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| test: | ||
| name: "Integration ${{ inputs.integration }}" | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Get full Python version | ||
| id: full-python-version | ||
| run: echo "version=$(python -c \"import sys; print('-'.join(str(v) for v in sys.version_info))\")" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Set up poetry | ||
| uses: Gr1N/setup-poetry@v9 | ||
| with: | ||
| poetry-version: "2.3.1" | ||
|
|
||
| - name: Configure poetry | ||
| run: poetry config virtualenvs.in-project true | ||
|
|
||
| - name: Set up cache | ||
| uses: actions/cache@v5 | ||
| id: cache | ||
| with: | ||
| path: .venv | ||
| key: venv-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }} | ||
|
|
||
| - name: Ensure cache is healthy | ||
| if: steps.cache.outputs.cache-hit == 'true' | ||
| run: timeout 10s poetry run pip --version || rm -rf .venv | ||
|
|
||
| - name: Install dependencies | ||
| run: poetry install --all-extras | ||
|
|
||
| - name: Test | ||
| env: | ||
| PYTEST_ADDOPTS: "--color=yes" | ||
| run: poetry run pytest tests/integration/contrib/${{ inputs.integration }} | ||
|
|
||
| - name: Upload coverage | ||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| flags: integration-${{ inputs.integration }},python-${{ matrix.python-version }} | ||
| name: integration-${{ inputs.integration }}-python-${{ matrix.python-version }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Integration starlette | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| integration-starlette: | ||
| uses: ./.github/workflows/integration-reusable.yml | ||
| with: | ||
| integration: starlette | ||
|
|
||
| secrets: inherit | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Integration werkzeug | ||
|
|
||
| on: | ||
| push: | ||
| pull_request: | ||
| types: [opened, synchronize] | ||
|
|
||
| jobs: | ||
| integration-werkzeug: | ||
| uses: ./.github/workflows/integration-reusable.yml | ||
| with: | ||
| integration: werkzeug | ||
|
|
||
| secrets: inherit | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.