Repository navigation
fix(parameters): handle transform failures gracefully in get_parameters_by_name #11069
Workflow file for this run
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
| name: Quality check - check code | |
| # PROCESS | |
| # | |
| # 1. Run formatting, linting, security and complexity checks once | |
| # 2. Run both type checkers and the test suite on every supported Python version | |
| # 3. Validate optional dependencies with Nox on every supported Python version | |
| # 4. Collect and report on test coverage | |
| # USAGE | |
| # | |
| # Always triggered on new PRs, PR changes and PR merge. | |
| on: | |
| pull_request: | |
| paths: | |
| - "aws_lambda_powertools/**" | |
| - "tests/**" | |
| - "layer_v3/docker/**" | |
| - "layer_v3/layer/canary/**" | |
| - "examples/**" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| - "mypy.ini" | |
| - "Makefile" | |
| - "noxfile.py" | |
| - "ruff.toml" | |
| - "bandit.baseline" | |
| - ".pre-commit-config.yaml" | |
| - ".github/workflows/quality_check.yml" | |
| - ".github/workflows/release-v3.yml" | |
| - ".github/workflows/pre-release.yml" | |
| - ".github/actions/seal/**" | |
| - ".github/actions/seal-restore/**" | |
| branches: | |
| - develop | |
| push: | |
| paths: | |
| - "aws_lambda_powertools/**" | |
| - "tests/**" | |
| - "layer_v3/docker/**" | |
| - "layer_v3/layer/canary/**" | |
| - "examples/**" | |
| - "pyproject.toml" | |
| - "uv.lock" | |
| - "mypy.ini" | |
| - "Makefile" | |
| - "noxfile.py" | |
| - "ruff.toml" | |
| - "bandit.baseline" | |
| - ".pre-commit-config.yaml" | |
| - ".github/workflows/quality_check.yml" | |
| - ".github/workflows/release-v3.yml" | |
| - ".github/workflows/pre-release.yml" | |
| - ".github/actions/seal/**" | |
| - ".github/actions/seal-restore/**" | |
| branches: | |
| - develop | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| static_checks: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.14" | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 | |
| with: | |
| version: "0.12.19" | |
| enable-cache: true | |
| cache-suffix: static-checks | |
| cache-dependency-glob: | | |
| pyproject.toml | |
| uv.lock | |
| - name: Install dependencies | |
| run: make dev-quality-code | |
| - name: Check formatting | |
| run: make format-check | |
| - name: Lint | |
| run: make lint-check | |
| - name: Security baseline | |
| run: make security-baseline | |
| - name: Complexity baseline | |
| run: make complexity-baseline | |
| quality_check: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| max-parallel: 5 | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| env: | |
| PYTHON: "${{ matrix.python-version }}" | |
| permissions: | |
| contents: read # checkout code only | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| id: python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0 | |
| with: | |
| version: "0.12.19" | |
| enable-cache: true | |
| cache-suffix: quality-${{ matrix.python-version }} | |
| cache-dependency-glob: | | |
| pyproject.toml | |
| uv.lock | |
| noxfile.py | |
| - name: Install dependencies | |
| run: make dev-quality-code | |
| - name: Cache mypy analysis | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: .mypy_cache | |
| key: mypy-${{ runner.os }}-${{ runner.arch }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('uv.lock', 'pyproject.toml', 'mypy.ini') }}-${{ github.sha }} | |
| restore-keys: | | |
| mypy-${{ runner.os }}-${{ runner.arch }}-${{ steps.python.outputs.python-version }}-${{ hashFiles('uv.lock', 'pyproject.toml', 'mypy.ini') }}- | |
| - name: Static type checking (mypy) | |
| run: make mypy | |
| - name: Static type checking (ty) | |
| run: make ty | |
| - name: Test with pytest | |
| run: make test | |
| - name: Test dependencies with Nox | |
| run: make test-dependencies | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # 7.1.1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml | |
| env_vars: PYTHON | |
| name: aws-lambda-powertools-python-codecov |