This commit is contained in:
Luqman
2023-10-03 16:06:32 +01:00
parent f0278890d7
commit daeb804107

View File

@@ -32,16 +32,12 @@ 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
- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.8"
python-version: "3.9"
architecture: x64
- name: Install Poetry and TOML
run: |
pip install toml
- name: Install Poetry
uses: snok/install-poetry@v1
with:
@@ -49,14 +45,19 @@ jobs:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install Python Dependencies
run: |
pip install toml pytest uvicorn
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v3
with:
path: .venv
key: venv-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock', '**/dev_install.py') }}
- name: Install obb Dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
python openbb_platform/dev_install.py -e