From d834256ac5aa105a00c6bcc4d69f73b5cc3f3ab9 Mon Sep 17 00:00:00 2001 From: Luqman Date: Tue, 3 Oct 2023 16:42:13 +0100 Subject: [PATCH] Created system setting files --- .github/workflows/api-integration-test.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/api-integration-test.yml b/.github/workflows/api-integration-test.yml index 10e167b32ab..e865b85971a 100644 --- a/.github/workflows/api-integration-test.yml +++ b/.github/workflows/api-integration-test.yml @@ -61,11 +61,24 @@ jobs: run: | python openbb_platform/dev_install.py -e - - name: Populate Setting Files + - name: Populate System Setting Files + run: | + touch ${{ github.workspace }}/openbb_platform/system_settings.json + echo '{"log_collect":false}' > ${{ github.workspace }}/openbb_platform/system_settings.json + + - name: Create and Populate user_settings.json from GitHub Secrets run: | touch ${{ github.workspace }}/openbb_platform/user_settings.json - echo '{"log_collect":false}' > ${{ github.workspace }}/openbb_platform/user_settings.json - + echo '{ + "credentials": { + "benzinga_api_key": ${{ secrets.BENZINGA_API_KEY }}, + "fmp_api_key": "${{ secrets.FMP_API_KEY }}", + "polygon_api_key": "${{ secrets.POLYGON_API_KEY }}", + "alpha_vantage_api_key": "${{ secrets.ALPHA_VANTAGE_API_KEY }}", + "fred_api_key": "${{ secrets.FRED_API_KEY }}" + } + }' > ${{ github.workspace }}/openbb_platform/user_settings.json + - name: Launch the Uvicorn Process run: | uvicorn openbb_core.api.rest_api:app --host 0.0.0.0 --port 8000 --reload &