mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 20:42:26 +00:00
* small bug
* small bug on routines list
* guest as default
* limit logout to users2
* simpler this way
* add logout
* move logout to account & add env var
* put authentication under env var
* fix tests
* remove login
* remove openbb vars on login
* ruff
* revert .toml
* Delete Icon
* Update .env
* fix sdk guest not loading keys
* ruff
* remove press enter & --login
* ruff
* move env load
* load env
* move dot env loading to terminal.py
* fix user sdk login mixing .env with user
* now it works
* fix reset
* fix tests
* ruff
* Login on the SDK using the OpenBB Personal Access Token (#4206)
* openbb key on keys menu
* adding sdk endpoints
* adding login via token to the sdk
* base url
* rename to personal access token
* added docstrings and examples
* openbb is special
* removing extra break line
* making keys working with the personal access token
* resolve conflicting tests
* Revert "resolve conflicting tests"
This reverts commit 2fca2c0ec3.
* using custom requests
* tests
* tests
* tests
* using process_session_response instead
* rewriting some tests
* Fix sdk guest not loading keys (#4207)
* fix sdk guest not loading keys
* ruff
* remove comment
* tests
---------
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
* test record mode vcr none
* remove yes from tests yml
* specify modules to reload
* try disable check api
* UPdate spec file
* Small stocks bug
* avoid reloading in test mode
* will this work?
* skip session tests
* try with env var as well
* mock sdk reload
* pylint
* bump poetry on python 3.8
* adapt to python 3.8
* adapt to python 3.8 remaining tests
* Tests : update cassettes
* Fix linting
* Makes login conditions simpler
* Tests : txt
---------
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Chavithra <chavithra@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
94 lines
2.6 KiB
YAML
Vendored
94 lines
2.6 KiB
YAML
Vendored
name: Mac OS X Full Clean Build with ML
|
|
env:
|
|
OPENBB_ENABLE_QUICK_EXIT: true
|
|
OPENBB_LOG_COLLECT: false
|
|
OPENBB_USE_ION: false
|
|
OPENBB_USE_PROMPT_TOOLKIT: false
|
|
PIP_DEFAULT_TIMEOUT: 100
|
|
OPENBB_FILE_OVERWRITE: true
|
|
PYTHONNOUSERSITE: 1
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
workflow_dispatch:
|
|
inputs:
|
|
comments:
|
|
required: true
|
|
description: "Test scenario tags"
|
|
jobs:
|
|
macos-conda:
|
|
name: MacOS-latest, Conda-latest, Python 3.9
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
# Need to fetch more than the last commit so that setuptools-scm can
|
|
# create the correct version string. If the number of commits since
|
|
# the last release is greater than this, the version still be wrong.
|
|
# Increase if necessary.
|
|
fetch-depth: 100
|
|
# The GitHub token is preserved by default but this job doesn't need
|
|
# to be able to push to GitHub.
|
|
persist-credentials: false
|
|
|
|
- name: Setup caching for conda packages
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/conda_pkgs_dir
|
|
key: conda-macos-3-9-${{ hashFiles('build/conda/conda-3-9-env.yaml') }}
|
|
|
|
- name: Setup Miniconda
|
|
uses: conda-incubator/setup-miniconda@v2
|
|
with:
|
|
miniconda-version: "latest"
|
|
auto-update-conda: true
|
|
channels: conda-forge,defaults
|
|
show-channel-urls: true
|
|
channel-priority: flexible
|
|
environment-file: build/conda/conda-3-9-env.yaml
|
|
activate-environment: testing
|
|
# Needed for caching
|
|
use-only-tar-bz2: true
|
|
|
|
- name: Get pip cache dir
|
|
shell: bash -l {0}
|
|
id: pip-cache
|
|
run: |
|
|
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
|
|
|
|
- name: pip cache
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ${{ steps.pip-cache.outputs.dir }}
|
|
key: macos-3-9-pip-${{ hashFiles('**/requirements-full.txt') }}
|
|
restore-keys: |
|
|
macos-pip-
|
|
|
|
- name: Uninstall Brotlipy
|
|
shell: bash -l {0}
|
|
run: |
|
|
conda remove brotlipy -y
|
|
|
|
- name: Install dependencies (Bash)
|
|
shell: bash -l {0}
|
|
run: |
|
|
conda info
|
|
pip install --requirement requirements-full.txt
|
|
pip install docstring_parser
|
|
|
|
- name: List installed packages (Bash)
|
|
shell: bash -l {0}
|
|
run: |
|
|
conda list
|
|
pip list
|
|
|
|
- name: Run tests (Bash)
|
|
shell: bash -l {0}
|
|
run: pytest tests/
|
|
|
|
- name: Start Terminal and exit
|
|
shell: bash -l {0}
|
|
run: python terminal.py
|