Skip to content

Commit 495b632

Browse files
committed
feat: e2e test streaming
1 parent f8f194b commit 495b632

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/tests.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,41 @@
2121
"mock_return": "Delay test successful returned after waiting 5 minutes.",
2222
"mock_delay": 120
2323
}
24+
},
25+
{
26+
"hardwareConfig": {
27+
"endpointConfig": {
28+
"gpuIds": "AMPERE_16",
29+
"name": "runpod-python E2E Test - Generator Handler"
30+
},
31+
"templateConfig": {
32+
"dockerArgs": "python3 -u /handler.py --generator --return_aggregate_stream"
33+
}
34+
},
35+
"input": {
36+
"mock_return": [
37+
"value1",
38+
"value2",
39+
"value3"
40+
]
41+
}
42+
},
43+
{
44+
"hardwareConfig": {
45+
"endpointConfig": {
46+
"gpuIds": "AMPERE_16",
47+
"name": "runpod-python E2E Test - Async Generator Handler"
48+
},
49+
"templateConfig": {
50+
"dockerArgs": "python3 -u /handler.py --async_generator --return_aggregate_stream"
51+
}
52+
},
53+
"input": {
54+
"mock_return": [
55+
"value1",
56+
"value2",
57+
"value3"
58+
]
59+
}
2460
}
2561
]

.github/workflows/CI-e2e.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
- name: Clone and patch mock-worker
2626
run: |
2727
git clone https://github.com/runpod-workers/mock-worker
28-
echo "Installing runpod-python from ${{ github.event.pull_request.head.sha }}"
2928
echo "git+https://github.com/runpod/runpod-python.git@${{ github.event.pull_request.head.sha }}" > mock-worker/builder/requirements.txt
3029
3130
- name: Set up QEMU

0 commit comments

Comments
 (0)