mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 04:52:07 +00:00
Run uvicorn with Poetry
This commit is contained in:
7
.github/workflows/api-integration-test.yml
vendored
7
.github/workflows/api-integration-test.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user