Skip to content

Commit

Permalink
refactor: polish AsyncAPI3 RMQ
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Nov 14, 2024
2 parents a81be9c + 736baba commit af95752
Show file tree
Hide file tree
Showing 610 changed files with 14,591 additions and 6,310 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docs_deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- uses: actions/setup-python@v5
with:
python-version: 3.x
Expand All @@ -28,7 +31,6 @@ jobs:
path: .cache
- run: |
set -ux
python -m pip install uv
uv pip install --system -e .[dev]
uv pip uninstall --system email-validator # This is to fix broken link in docs
- run: ./scripts/build-docs.sh
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docs_update-references.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -35,7 +38,6 @@ jobs:
# should install with `-e`
run: |
set -ux
python -m pip install uv
uv pip install --system -e .[dev]
- name: Run build docs
run: bash scripts/build-docs.sh
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/docs_update-release-notes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
Expand All @@ -39,7 +41,6 @@ jobs:

- name: Install dependencies
run: |
python -m pip install uv
uv pip install --system requests
- name: Run update_releases.py script
Expand Down
86 changes: 56 additions & 30 deletions .github/workflows/pr_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: |
3.8
3.9
3.10
- name: Set $PY environment variable
Expand All @@ -55,12 +54,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
pydantic-version: ["pydantic-v1", "pydantic-v2"]
fail-fast: false

steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
Expand All @@ -73,7 +75,6 @@ jobs:
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[optionals,testing]
- name: Install Pydantic v1
if: matrix.pydantic-version == 'pydantic-v1'
Expand Down Expand Up @@ -102,14 +103,16 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[optionals,testing]
- name: Test
run: >
Expand All @@ -121,14 +124,16 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[optionals,testing]
- name: Test
run: >
Expand All @@ -140,14 +145,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[kafka,test-core,cli]
- name: Test
run: >
Expand Down Expand Up @@ -179,14 +186,16 @@ jobs:
ALLOW_PLAINTEXT_LISTENER: "true"
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[optionals,testing]
- run: mkdir coverage
- name: Test
Expand All @@ -209,14 +218,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[confluent,test-core,cli]
- name: Test
run: >
Expand Down Expand Up @@ -248,14 +259,16 @@ jobs:
ALLOW_PLAINTEXT_LISTENER: "true"
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[optionals,testing]
- run: mkdir coverage
- name: Test
Expand All @@ -278,14 +291,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[rabbit,test-core,cli]
- name: Test
run: >
Expand All @@ -306,14 +321,16 @@ jobs:
- 5672:5672
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[optionals,testing]
- run: mkdir coverage
- name: Test
Expand All @@ -336,14 +353,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[nats,test-core,cli]
- name: Test
run: >
Expand All @@ -364,14 +383,16 @@ jobs:
- 4222:4222
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[optionals,testing]
- run: mkdir coverage
- name: Test
Expand All @@ -394,14 +415,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[redis,test-core,cli]
- name: Test
run: >
Expand All @@ -422,14 +445,16 @@ jobs:
- 6379:6379
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
python-version: "3.13"
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install uv
uv pip install --system .[optionals,testing]
- run: mkdir coverage
- name: Test
Expand Down Expand Up @@ -460,10 +485,12 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: astral-sh/setup-uv@v3
with:
version: "latest"
- uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: "3.12"

- name: Get coverage files
uses: actions/download-artifact@v4
Expand All @@ -473,7 +500,6 @@ jobs:
merge-multiple: true

- run: |
python -m pip install uv
uv pip install --system coverage[toml]
- run: ls -la coverage
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/publish_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- uses: astral-sh/setup-uv@v3
with:
version: "latest"

- run: |
python -m pip install uv
uv pip install --system smokeshow
- uses: dawidd6/action-download-artifact@v6 # nosemgrep
Expand Down
3 changes: 0 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ repos:
stages: [pre-commit, pre-merge-commit, manual]
entry: "scripts/lint-pre-commit.sh"
language: python
language_version: python3.10
types: [python]
require_serial: true
verbose: true
Expand All @@ -49,7 +48,6 @@ repos:
name: Static analysis
entry: "scripts/static-pre-commit.sh"
language: python
language_version: python3.10
types: [python]
require_serial: true
verbose: true
Expand All @@ -60,7 +58,6 @@ repos:
name: Build docs
entry: "scripts/build-docs-pre-commit.sh"
language: python
language_version: python3.10
files: ^docs
require_serial: true
verbose: true
Expand Down
4 changes: 2 additions & 2 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
"filename": "docs/docs/en/release.md",
"hashed_secret": "35675e68f4b5af7b995d9205ad0fc43842f16450",
"is_verified": false,
"line_number": 1723,
"line_number": 1835,
"is_secret": false
}
],
Expand All @@ -178,5 +178,5 @@
}
]
},
"generated_at": "2024-09-25T19:57:57Z"
"generated_at": "2024-11-08T12:39:15Z"
}
Loading

0 comments on commit af95752

Please sign in to comment.