Python Integration Tests #3
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: Python Integration Tests | |
| on: | |
| workflow_call: | |
| workflow_dispatch: | |
| # TODO: enable this back once the workflow runs without issues | |
| # push: | |
| # branches: main | |
| jobs: | |
| integration: | |
| environment: Integ | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.12'] | |
| # python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| permissions: | |
| id-token: write | |
| contents: read | |
| env: | |
| AGENTCORE_RUNTIME_ARN: ${{ secrets.AgentCoreRuntimeArn }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync --frozen --all-extras --dev | |
| - name: Configure AWS Credentials for Tests | |
| uses: aws-actions/configure-aws-credentials@v5 | |
| with: | |
| aws-region: us-west-2 | |
| role-to-assume: ${{ secrets.IntegTestRoleArn }} | |
| role-session-name: aws-mcp-proxy-integ-tests | |
| - name: Run integration tests | |
| run: | | |
| uv run pytest -m integ -s |