Skip to content

Commit f18e190

Browse files
committed
i actually wrote this :)
Signed-off-by: Tyler Slaton <[email protected]>
1 parent 195605b commit f18e190

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

.github/workflows/dojo-e2e.yml

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,51 +17,51 @@ jobs:
1717
- suite: agno
1818
test_path: tests/agnoTests
1919
services: ["dojo","agno"]
20-
wait_on: ["http://localhost:9999","tcp:localhost:8002"]
20+
wait_on: "http://localhost:9999,tcp:localhost:8002"
2121
- suite: crew-ai
2222
test_path: tests/crewAITests
2323
services: ["dojo","crew-ai"]
24-
wait_on: ["http://localhost:9999","tcp:localhost:8003"]
24+
wait_on: "http://localhost:9999,tcp:localhost:8003"
2525
- suite: langgraph
2626
test_path: tests/langgraphTests
2727
services: ["dojo","langgraph-platform-python","langgraph-platform-typescript"]
28-
wait_on: ["http://localhost:9999","tcp:localhost:8005","tcp:localhost:8006"]
28+
wait_on: "http://localhost:9999,tcp:localhost:8005,tcp:localhost:8006"
2929
- suite: langgraph-fastapi
3030
test_path: tests/langgraphFastAPITests
3131
services: ["dojo","langgraph-fastapi"]
32-
wait_on: ["http://localhost:9999","tcp:localhost:8004"]
32+
wait_on: "http://localhost:9999,tcp:localhost:8004"
3333
- suite: llama-index
3434
test_path: tests/llamaIndexTests
3535
services: ["dojo","llama-index"]
36-
wait_on: ["http://localhost:9999","tcp:localhost:8007"]
36+
wait_on: "http://localhost:9999,tcp:localhost:8007"
3737
- suite: mastra
3838
test_path: tests/mastraTests
3939
services: ["dojo","mastra"]
40-
wait_on: ["http://localhost:9999","tcp:localhost:8008"]
40+
wait_on: "http://localhost:9999,tcp:localhost:8008"
4141
- suite: mastra-agent-local
4242
test_path: tests/mastraAgentLocalTests
4343
services: ["dojo"]
44-
wait_on: ["http://localhost:9999"]
44+
wait_on: "http://localhost:9999"
4545
- suite: middleware-starter
4646
test_path: tests/middlewareStarterTests
4747
services: ["dojo"]
48-
wait_on: ["http://localhost:9999"]
48+
wait_on: "http://localhost:9999"
4949
- suite: pydantic-ai
5050
test_path: tests/pydanticAITests
5151
services: ["dojo","pydantic-ai"]
52-
wait_on: ["http://localhost:9999","tcp:localhost:8009"]
52+
wait_on: "http://localhost:9999,tcp:localhost:8009"
5353
- suite: server-starter
5454
test_path: tests/serverStarterTests
5555
services: ["dojo","server-starter"]
56-
wait_on: ["http://localhost:9999","tcp:localhost:8000"]
56+
wait_on: "http://localhost:9999,tcp:localhost:8000"
5757
- suite: server-starter-all
5858
test_path: tests/serverStarterAllFeaturesTests
5959
services: ["dojo","server-starter-all"]
60-
wait_on: ["http://localhost:9999","tcp:localhost:8001"]
60+
wait_on: "http://localhost:9999,tcp:localhost:8001"
6161
- suite: vercel-ai-sdk
6262
test_path: tests/vercelAISdkTests
6363
services: ["dojo"]
64-
wait_on: ["http://localhost:9999"]
64+
wait_on: "http://localhost:9999"
6565

6666
steps:
6767
- name: Checkout code
@@ -90,19 +90,10 @@ jobs:
9090
restore-keys: |
9191
${{ runner.os }}-pnpm-store-
9292
93-
- name: Install Poetry
94-
uses: snok/install-poetry@v1
95-
with:
96-
version: latest
97-
virtualenvs-create: true
98-
virtualenvs-in-project: true
99-
100-
- name: Install uv
101-
uses: astral-sh/setup-uv@v6
102-
103-
# Cache Python tool caches and virtualenvs for Poetry/uv-based projects
104-
- name: Cache Python dependencies
105-
uses: actions/cache@v4
93+
# Cache Python tool caches and virtualenvs; restore only to avoid long saves
94+
- name: Cache Python dependencies (restore-only)
95+
id: cache-python
96+
uses: actions/cache/restore@v4
10697
with:
10798
path: |
10899
~/.cache/pip
@@ -113,6 +104,16 @@ jobs:
113104
restore-keys: |
114105
${{ runner.os }}-pydeps-
115106
107+
- name: Install Poetry
108+
uses: snok/install-poetry@v1
109+
with:
110+
version: latest
111+
virtualenvs-create: true
112+
virtualenvs-in-project: true
113+
114+
- name: Install uv
115+
uses: astral-sh/setup-uv@v6
116+
116117
- name: Install dependencies
117118
working-directory: typescript-sdk
118119
run: pnpm install --frozen-lockfile
@@ -165,7 +166,7 @@ jobs:
165166
run: |
166167
node ../scripts/run-dojo-everything.js --only ${{ join(matrix.services, ',') }}
167168
working-directory: typescript-sdk/apps/dojo/e2e
168-
wait-on: ${{ join(matrix.wait_on, '\n') }}
169+
wait-on: ${{ matrix.wait_on }}
169170
wait-for: 300000
170171

171172
- name: Run tests – ${{ matrix.suite }}

0 commit comments

Comments
 (0)