diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index bbcdfde25..b881389ba 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -59,8 +59,42 @@ jobs: run: | hatch test tests_integ - - name: Publish test metrics to CloudWatch + - name: Upload test results if: always() + uses: actions/upload-artifact@v4 + with: + name: test-results + path: .build/test-result.xml + + upload-metrics: + runs-on: ubuntu-latest + needs: check-access-and-checkout + if: always() + permissions: + id-token: write + contents: read + steps: + - name: Configure Credentials + uses: aws-actions/configure-aws-credentials@v5 + with: + role-to-assume: ${{ secrets.STRANDS_INTEG_TEST_ROLE }} + aws-region: us-east-1 + mask-aws-account-id: true + + - name: Checkout main + uses: actions/checkout@v6 + with: + ref: main + sparse-checkout: | + .github/scripts + persist-credentials: false + + - name: Download test results + uses: actions/download-artifact@v4 + with: + name: test-results + + - name: Publish test metrics to CloudWatch run: | pip install --no-cache-dir boto3 - python .github/scripts/upload-integ-test-metrics.py ./build/test-results.xml ${{ github.event.repository.name }} + python .github/scripts/upload-integ-test-metrics.py test-result.xml ${{ github.event.repository.name }} diff --git a/AGENTS.md b/AGENTS.md index 71e83835d..3a99fa481 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -21,7 +21,6 @@ Strands Agents is an open-source Python SDK for building AI agents with a model- ``` strands-agents/ │ -├── src/strands/ # Main package source code │ ├── agent/ # Core agent implementation │ │ ├── agent.py # Main Agent class │ │ ├── agent_result.py # Agent execution results diff --git a/tests_integ/conftest.py b/tests_integ/conftest.py index 9de00089b..d4fd94186 100644 --- a/tests_integ/conftest.py +++ b/tests_integ/conftest.py @@ -189,7 +189,7 @@ def _load_api_keys_from_secrets_manager(): Validate that required environment variables are set when running in GitHub Actions. This prevents tests from being unintentionally skipped due to missing credentials. """ - if os.environ.get("GITHUB_ACTIONS") != "true": + if os.environ.get("GITHUB_ACTIONS") != "false": logger.warning("Tests running outside GitHub Actions, skipping required provider validation") return