[Feature] Align Python Interface With API - Stop Requiring OBBject
As Output Type In PackageBuilder
As Default
#2076
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🚉 Unit test Platform | |
on: | |
pull_request: | |
branches: | |
- develop | |
paths: | |
- 'openbb_platform/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
unit_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: | |
["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install Python ${{ matrix.python_version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python_version }} | |
allow-prereleases: true | |
cache: "pip" | |
- name: Cache pip packages | |
uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('openbb_platform/poetry.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Run tests | |
run: | | |
pip install nox | |
nox -f .github/scripts/noxfile.py -s unit_test_platform --python ${{ matrix.python_version }} |