Skip to content

feat(event_handler): add support for defining OpenAPI examples in par… #1825

feat(event_handler): add support for defining OpenAPI examples in par…

feat(event_handler): add support for defining OpenAPI examples in par… #1825

Workflow file for this run

name: Run end-to-end tests
# PROCESS
#
# 1. Install all dependencies and spin off containers for all supported Python versions
# 2. Install pinned CDK version
# 3. Trade JWT token for AWS credentials to Test account
# 4. Run E2E in parallel for each feature
# USAGE
#
# see MAINTAINERS.md#internals for full details on mechanics.
#
# Always triggered on new PR merge.
on:
workflow_dispatch:
push:
branches:
- develop
- v3
paths:
- "aws_lambda_powertools/**"
- "tests/e2e/**"
- "pyproject.toml"
- "poetry.lock"
- "mypy.ini"
- "parallel_run_e2e.py"
# Maintenance: Add support for triggering on `run-e2e` label
# and enforce repo origin to prevent abuse
env:
AWS_DEFAULT_REGION: us-east-1
concurrency: e2e
permissions:
contents: read
jobs:
run:
runs-on: aws-powertools_ubuntu-latest_8-core
permissions:
id-token: write # needed to request JWT with GitHub's OIDC Token endpoint. docs: https://bit.ly/3MNgQO9
contents: read # checkout code
strategy:
fail-fast: false # needed so if a version fails, the others will still be able to complete and cleanup
matrix:
version: ["3.9", "3.10", "3.11", "3.12","3.13"]
if: ${{ github.actor != 'dependabot[bot]' && github.repository == 'aws-powertools/powertools-lambda-python' }}
steps:
- name: "Checkout"
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install poetry
run: pipx install poetry
- name: "Use Python"
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.version }}
architecture: "x64"
cache: "poetry"
- name: Setup Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: "20.10.0"
- name: Install CDK CLI
run: |
npm ci
npx cdk --version
- name: Install dependencies
run: make dev-quality-code
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@ececac1a45f3b08a01d2dd070d28d111c5fe6722 # v4.1.0
with:
role-to-assume: ${{ secrets.AWS_TEST_ROLE_ARN }}
aws-region: ${{ env.AWS_DEFAULT_REGION }}
mask-aws-account-id: true
- name: Test
run: make e2e-test