Run uvicorn with Poetry

This commit is contained in:
Igor Radovanovic
2023-10-03 20:56:28 +02:00
parent 40d6de46bf
commit d46799d81e

View File

@@ -48,12 +48,9 @@ jobs:
- name: Configure Poetry
run: poetry config virtualenvs.in-project true
- name: Install Dependencies with Poetry
run: poetry install -C ${{ github.workspace }}/openbb_platform -E all
- name: Install Python Dependencies
# source $(poetry env info --path)/bin/activate
run: |
source $(poetry env info --path)/bin/activate
pip install toml pytest uvicorn importlib-metadata requests
# - name: Load cached venv
@@ -89,7 +86,7 @@ jobs:
- name: Launch the Uvicorn Process
run: |
uvicorn openbb_core.api.rest_api:app --host 0.0.0.0 --port 8000 --reload &
poetry run uvicorn openbb_core.api.rest_api:app --host 0.0.0.0 --port 8000 --reload &
- name: Wait for 1 minute
run: sleep 60