From 0c44b8b4e3b92afe8a7134198fdcce0d5ea234c9 Mon Sep 17 00:00:00 2001 From: Luqman Date: Tue, 3 Oct 2023 15:12:18 +0100 Subject: [PATCH] home path --- .github/workflows/api-integration-test.yml | 30 ++++++++++++++++------ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/api-integration-test.yml b/.github/workflows/api-integration-test.yml index 0d74ad5370a..3e4f2556345 100644 --- a/.github/workflows/api-integration-test.yml +++ b/.github/workflows/api-integration-test.yml @@ -32,14 +32,29 @@ jobs: if: github.event_name == 'pull_request' run: git fetch origin ${{ github.event.pull_request.head.ref }} && git checkout FETCH_HEAD - - name: Setup Python 3.8 with venv - run: | - python -m venv obb-38 - source obb-38/bin/activate + - name: Setup Python 3.8 + uses: actions/setup-python@v4 + with: + python-version: "3.8" + architecture: x64 - name: Install Poetry and TOML run: | - pip install poetry toml + pip install toml + + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + version: 1.4.0 + virtualenvs-create: true + virtualenvs-in-project: true + + - name: Load cached venv + id: cached-poetry-dependencies + uses: actions/cache@v3 + with: + path: .venv + key: venv-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock') }} - name: Install obb Dependencies run: | @@ -47,9 +62,8 @@ jobs: - name: Populate Setting Files run: | - pwd - touch ~/openbb_platform/user_settings.json - echo '{"log_collect":false}' > ~/openbb_platform/user_settings.json + touch $HOME/openbb_platform/user_settings.json + echo '{"log_collect":false}' > $HOME/openbb_platform/user_settings.json - name: Launch the Uvicorn Process run: |