Skip to content

Commit 04e53dc

Browse files
committed
chore: Verify chatbot and e2e test dependencies in PR checks
1 parent 84bfa66 commit 04e53dc

File tree

2 files changed

+103
-0
lines changed

2 files changed

+103
-0
lines changed

.github/workflows/python-checks.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,73 @@ jobs:
4646
- name: Run pytest
4747
run: uv run --frozen pytest
4848
working-directory: ./src/python
49+
50+
check_python_chatbot:
51+
name: Check Python chatbot
52+
runs-on: ubuntu-latest
53+
permissions:
54+
contents: read
55+
timeout-minutes: 15
56+
steps:
57+
- uses: actions/checkout@v4
58+
59+
- name: Install uv
60+
uses: astral-sh/setup-uv@v5
61+
with:
62+
enable-cache: true
63+
64+
- name: "Set up Python"
65+
uses: actions/setup-python@v5
66+
with:
67+
python-version-file: "src/python/.python-version"
68+
69+
- name: Install the project
70+
run: uv sync --frozen --all-extras --dev
71+
working-directory: ./src/python
72+
73+
- name: Build
74+
run: uv build
75+
working-directory: ./src/python
76+
77+
- name: Check chatbot dependencies
78+
run: uv pip install -r requirements.txt
79+
working-directory: ./examples/chatbots/python
80+
81+
- uses: pypa/[email protected]
82+
with:
83+
inputs: ./examples/chatbots/python
84+
85+
check_python_e2e_tests:
86+
name: Check Python E2E tests
87+
runs-on: ubuntu-latest
88+
permissions:
89+
contents: read
90+
timeout-minutes: 15
91+
steps:
92+
- uses: actions/checkout@v4
93+
94+
- name: Install uv
95+
uses: astral-sh/setup-uv@v5
96+
with:
97+
enable-cache: true
98+
99+
- name: "Set up Python"
100+
uses: actions/setup-python@v5
101+
with:
102+
python-version-file: "src/python/.python-version"
103+
104+
- name: Install the project
105+
run: uv sync --frozen --all-extras --dev
106+
working-directory: ./src/python
107+
108+
- name: Build
109+
run: uv build
110+
working-directory: ./src/python
111+
112+
- name: Check E2E tests dependencies
113+
run: uv pip install -r requirements.txt
114+
working-directory: ./e2e_tests/python
115+
116+
- uses: pypa/[email protected]
117+
with:
118+
inputs: ./e2e_tests/python

.github/workflows/typescript-checks.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,36 @@ jobs:
6868
- name: Build
6969
run: npm run build
7070
working-directory: ./examples/chatbots/typescript
71+
72+
check_typescript_e2e_tests:
73+
name: Check Typescript E2E tests
74+
runs-on: ubuntu-latest
75+
permissions:
76+
contents: read
77+
timeout-minutes: 15
78+
steps:
79+
- uses: actions/checkout@v4
80+
81+
- name: "Set up Typescript"
82+
uses: actions/setup-node@v4
83+
with:
84+
node-version: 20
85+
86+
- name: Build and link local package
87+
run: |
88+
npm ci
89+
npm audit --audit-level critical
90+
npm run build
91+
npm link
92+
working-directory: ./src/typescript
93+
94+
- name: Install dependencies
95+
run: |
96+
npm ci
97+
npm audit --audit-level critical
98+
npm link @aws/run-mcp-servers-with-aws-lambda
99+
working-directory: ./e2e_tests/typescript
100+
101+
- name: Build
102+
run: npm run build
103+
working-directory: ./e2e_tests/typescript

0 commit comments

Comments
 (0)