File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ cat > .github/workflows/ci.yml << 'EOF'
12name : CI
23
34on :
@@ -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 : |
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
You can’t perform that action at this time.
0 commit comments