-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (35 loc) · 1.03 KB
/
Copy pathtest-agent.yml
File metadata and controls
44 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test Agent
on:
workflow_dispatch:
env:
AWS_REGION: us-east-1
AGENT_NAME: strands_agent
permissions:
id-token: write
contents: read
jobs:
test:
name: Test Agent
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: '3.12'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@d0834ad3a60a024346910e522a81b0002bd37fea
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
role-session-name: GitHubActions-AgentCore-Test
aws-region: ${{ env.AWS_REGION }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install boto3
- name: Test deployed agent
run: |
python scripts/test_agent.py \
--agent-name "${{ env.AGENT_NAME }}" \
--region "${{ env.AWS_REGION }}"