Skip to content

Commit bf2ba55

Browse files
committed
fix: Add explicit uvicorn installation to CI workflow
1 parent 4e45664 commit bf2ba55

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
cat > .github/workflows/ci.yml << 'EOF'
12
name: CI
23

34
on:
@@ -14,16 +15,18 @@ jobs:
1415
python-version: ["3.10", "3.11", "3.12"]
1516

1617
steps:
17-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@v4
1819

1920
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v6
21+
uses: actions/setup-python@v4
2122
with:
2223
python-version: ${{ matrix.python-version }}
2324

2425
- name: Install dependencies
2526
run: |
27+
python -m pip install --upgrade pip
2628
pip install -e ".[dev,api]"
29+
pip install uvicorn fastapi httpx websockets python-multipart
2730
2831
- name: Run tests
2932
run: |
@@ -33,5 +36,6 @@ jobs:
3336
run: |
3437
uvicorn api:app --host 0.0.0.0 --port 8000 &
3538
sleep 2
36-
curl -sf http://localhost:8000/health
39+
curl -sf http://localhost:8000/health || exit 1
3740
kill %1
41+
EOF

0 commit comments

Comments
 (0)