fix: write initialize error to stdout (#95) #59
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_dispatch: | |
| push: | |
| branches: main | |
| workflow_call: | |
| inputs: | |
| ref: | |
| description: 'Git ref to checkout' | |
| required: false | |
| type: string | |
| 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 | |
| with: | |
| ref: ${{ inputs.ref || github.ref }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2 | |
| - 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: mcp-proxy-for-aws-integ-tests | |
| - name: Run integration tests | |
| run: | | |
| uv run pytest -m integ -s |