Skip to content

Commit a807a24

Browse files
committed
Update docker-build.yml
1 parent 51d1c8d commit a807a24

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

.github/workflows/docker-build.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -86,26 +86,7 @@ jobs:
8686
cache-from: type=gha
8787
cache-to: type=gha,mode=max
8888

89-
- name: Test Docker image
90-
if: github.event_name == 'pull_request'
91-
run: |
92-
# Build image for testing
93-
docker build -t ttsfm-test .
94-
# Run container
95-
docker run --rm -d -p 8000:8000 --name ttsfm-test ttsfm-test
96-
# Wait for startup
97-
sleep 30
98-
# Test health endpoint
99-
curl -f http://localhost:8000/api/health || exit 1
100-
# Test OpenAI-compatible endpoint
101-
curl -X POST http://localhost:8000/v1/audio/speech \
102-
-H "Content-Type: application/json" \
103-
-d '{"model":"gpt-4o-mini-tts","input":"Hello world","voice":"alloy","response_format":"mp3"}' \
104-
--output test.mp3 || exit 1
105-
# Check if file was created
106-
test -f test.mp3 || exit 1
107-
# Stop container
108-
docker stop ttsfm-test
89+
10990

11091
- name: Show image info
11192
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)