Skip to content

Commit

Permalink
Add FastAPI server startup and delay for initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Devasy23 committed Jan 10, 2024
1 parent 82a6185 commit 891c764
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ jobs:
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
uvicorn main:app --reload
- name: Start FastAPI server
run: |
uvicorn main:app --reload &
sleep 10 # Give FastAPI some time to start
shell: bash
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
Expand Down

0 comments on commit 891c764

Please sign in to comment.