Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated API endpoint from deprecated api.coindix to api.nanoly #5848

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
de5837f
Merge pull request #5529 from OpenBB-finance/release/3.2.3
jmaslek Oct 4, 2023
10568ca
test
jmaslek Oct 9, 2023
4e3cfa3
Merge pull request #5536 from OpenBB-finance/feature/v4-tests
jmaslek Oct 9, 2023
9f502c3
ultima description (#5541)
hjoaquim Oct 10, 2023
dac1085
Updating showcase page (#5543)
hjoaquim Oct 11, 2023
16d29d6
add new bot command autopost docs (#5530)
andrewkenreich Oct 11, 2023
633cdb1
Hotfix/ultima improvements (#5553)
AdiSai Oct 13, 2023
09c40d4
fix: Modify 'load' behavior to append data to existing sheet (#5503)
ssahaxd Oct 14, 2023
f1c368b
added platform API integration test to Nightly build (#5571)
luqmanbello Oct 17, 2023
8f42c2f
Add columns to `stocks/search` (#5565)
AdwaitSalankar Oct 18, 2023
90eeabf
updating ultima urls (#5587)
hjoaquim Oct 20, 2023
5d9d71e
fix: A value is trying to be set on a copy of a slice from a DataFram…
abhishek-amar Oct 23, 2023
b4db72f
Update README.md (#5598)
DidierRLopes Oct 24, 2023
195bc05
Hotfix/econometrics export filename fix (#5508)
ssahaxd Oct 30, 2023
d4b7d6e
FIX #5600 Updated the Twitter logo to X logo (#5601)
professssor Oct 30, 2023
31f0ed4
Change Ultima paragraph (#5624)
hjoaquim Oct 30, 2023
d7d8eaf
Update CONTRIBUTING.md (#5623)
FarukhS52 Oct 30, 2023
23ae1ea
mobile line-brake fixed (#5604)
maxxsh Oct 30, 2023
4ad995f
Docs/terminalpro and improvement (#5622)
DidierRLopes Oct 30, 2023
b9c70ec
Add light blue banner, blue when clicking sidebar + fix link in docus…
DidierRLopes Oct 30, 2023
478fd5e
fix docs (#5646)
andrewkenreich Nov 1, 2023
1386cbb
Fix the redirect for intro to the correct url for docs (#5658)
fadilparves Nov 3, 2023
504a4f4
Improve Pro documentation further (#5641)
DidierRLopes Nov 3, 2023
80efde4
Update folders.md
DidierRLopes Nov 3, 2023
90eb092
Update integrate-your-own-backend.md
DidierRLopes Nov 3, 2023
454bd10
Update index.md
DidierRLopes Nov 3, 2023
c10301f
Update settings.md (#5665)
DidierRLopes Nov 3, 2023
04f0a63
fix front matter (#5667)
DidierRLopes Nov 3, 2023
52190fb
#5633 adding comma every 1000 (#5652)
ramazanguvenc Nov 6, 2023
aec5c9e
Hotfix/reports model render report sanitize inputs (#5669)
joshuabuildsthings Nov 7, 2023
da3cbb7
hotfix/fix-gov-histcont: Fix #5650 - /stocks/gov/histcont (#5676)
deeleeramone Nov 7, 2023
1be94c5
remove space in regex (#5675)
deeleeramone Nov 7, 2023
f840d7b
Pin openai (#5685)
jmaslek Nov 8, 2023
cfc40e7
Clarified stocks/ta empty recom object message (#5468)
polooner Nov 8, 2023
acf8b06
improved market cap value extraction (#5169)
bimbolimbo Nov 8, 2023
f2208f8
Release/3.2.4 (#5704)
jmaslek Nov 10, 2023
8b95d19
OpenBB Platform v4 (#5225)
piiq Nov 13, 2023
c218679
Hotfix/pypi openbb terminal (#5719)
hjoaquim Nov 14, 2023
2db0144
Finishing touches to the publishing procedure (#5728)
hjoaquim Nov 14, 2023
139efd3
Run tests on develop (#5725)
jmaslek Nov 14, 2023
68965c4
Seprate Intrinio financials data tags into a different command (#5723)
the-praxs Nov 14, 2023
cffd302
Fix threadpool test error (#5734)
IgorWounds Nov 15, 2023
d420752
Remove ultima from deps (#5736)
hjoaquim Nov 15, 2023
e1ecb3c
new currency reference rates pr (#5724)
deeleeramone Nov 15, 2023
f0002b2
point files to linters (#5739)
montezdesousa Nov 15, 2023
3ce696f
remove news from equity (#5741)
the-praxs Nov 15, 2023
2b058c6
Add tiingo provider (#5740)
jmaslek Nov 16, 2023
4230a26
Add `derivatives` extension for `futures` and `options` (#5742)
the-praxs Nov 16, 2023
e689404
bug #5649 (#5722)
ramazanguvenc Nov 16, 2023
be7f0c3
Rename the fmp search -> screener (#5744)
jmaslek Nov 16, 2023
757fc57
docs/fix-urls: Updates the Terminal About URLs to match `/develop` (#…
deeleeramone Nov 16, 2023
63fe442
Stock leftover cleanup (#5745)
the-praxs Nov 16, 2023
8467ac5
Hotfix/urllib to dev group (#5732)
hjoaquim Nov 17, 2023
7ceacb3
feature/v4-bop - Add ECB Balance of Payments (Replaces #5716) (#5726)
deeleeramone Nov 17, 2023
0c8da91
Nasdaq calendar earnings and fix FMP calendar earnings (#5718)
deeleeramone Nov 17, 2023
ef662e1
feature/us-treasury-auctions: Adds Treasury Auctions endpoint and pro…
deeleeramone Nov 17, 2023
551b7f7
Update hub<>platform credentials map (#5749)
montezdesousa Nov 17, 2023
86aa18b
Add API settings schema to system settings (#5743)
piiq Nov 17, 2023
565cafb
Skip checking creds (#5737)
montezdesousa Nov 17, 2023
7e59a07
Fix Quote (#5752)
IgorWounds Nov 17, 2023
cfab062
Wrap up renaming global news to world news on a model level (#5750)
piiq Nov 17, 2023
5981dfd
Remove eod from docstrings (#5751)
piiq Nov 17, 2023
d07c7ef
Massive docstring cleanup (#5755)
the-praxs Nov 18, 2023
7534c43
Updates system and api settings (#5753)
montezdesousa Nov 18, 2023
ddcd1e7
Squeeze build time (#5756)
montezdesousa Nov 18, 2023
7bcef37
docs/working-docs: Working V4 Docs PR (#5747)
deeleeramone Nov 20, 2023
c680a74
Add Pro videos to docs + fix CI (#5765)
DidierRLopes Nov 20, 2023
dce447b
install v4 (#5766)
jmaslek Nov 21, 2023
ab746ce
Generate widgets library (#5767)
DidierRLopes Nov 21, 2023
2f1bbb2
Add support for multiple ticker (#5770)
IgorWounds Nov 21, 2023
c0d93e4
Released this code (#5761)
montezdesousa Nov 21, 2023
40dece2
Feature/fix platform unit test (#5772)
luqmanbello Nov 21, 2023
1e4feff
Docs/fix doc generations (#5775)
tehcoderer Nov 21, 2023
467f248
Small fix (#5777)
DidierRLopes Nov 22, 2023
24bc6ec
Rename session file (#5771)
montezdesousa Nov 22, 2023
48dd13e
fix github pages deployment (#5780)
luqmanbello Nov 22, 2023
9da18ee
small changes (#5781)
luqmanbello Nov 22, 2023
4400cd9
Merge provider and core into core (#5774)
hjoaquim Nov 22, 2023
5cc5cce
hotfix/fix-technical-output: Include Dates in Output (#5754)
deeleeramone Nov 22, 2023
bc2fa9b
Feature/platform async (#5763)
tehcoderer Nov 23, 2023
bb5e76c
Feature/general fixes (#5786)
montezdesousa Nov 23, 2023
49bdd76
hotfix/yfinance-download: Fix Intraday Helper (#5785)
deeleeramone Nov 23, 2023
dd833ff
Update Pro documentation (#5784)
DidierRLopes Nov 24, 2023
a31df4b
fix `\n` in field descriptions breaks markdown table (#5792)
tehcoderer Nov 25, 2023
9219a63
New Intrinio Endpoints (#5789)
the-praxs Nov 27, 2023
1ae3d58
Fix hqm (#5796)
IgorWounds Nov 27, 2023
9716b21
Feature/release b2 (#5799)
montezdesousa Nov 27, 2023
e0b4911
Equity multiples add symbol data field (#5800)
the-praxs Nov 27, 2023
609999f
fix calendar split (#5804)
the-praxs Nov 28, 2023
c8824a4
Add `symbols` field to standard model data (#5802)
the-praxs Nov 28, 2023
f42c457
Hotfix/yfinance-adjusted: Fix for #5798 (#5803)
deeleeramone Nov 28, 2023
3959f95
Feature/fred-releases: Adds some FRED functionality to the economy ro…
deeleeramone Nov 28, 2023
1ee70bc
small fix (#5810)
montezdesousa Nov 28, 2023
688624c
remove finra, wsj and goventment-us from built ins (#5806)
piiq Nov 28, 2023
06f0e72
Add sector news standard model (#5795)
piiq Nov 28, 2023
ed2fc04
replace provider error by openbb (#5812)
montezdesousa Nov 28, 2023
c7e6906
split -> splits in calendar router (#5814)
the-praxs Nov 28, 2023
f531712
Add Historical Dividends to Intrinio inplace of Calendar Dividends (#…
the-praxs Nov 28, 2023
c8bc7fe
Fix typos (#5808)
omahs Nov 29, 2023
99882a1
warn loading error by default (#5818)
montezdesousa Nov 29, 2023
06daf98
hotfix/fmp-insider-trading - Fix FMP Insider Trading (#5817)
deeleeramone Nov 29, 2023
ce14ee6
Fix nasdaq top retail working without a key resulting in an error (#5…
the-praxs Nov 29, 2023
fe53c93
hotfix/fmp-replace-zero: Replace Zero with None in FMP Balance, Cash,…
deeleeramone Nov 29, 2023
563df69
Set `level` as default `tag` value for `index.market` in Intrinio (#5…
the-praxs Nov 29, 2023
6e3038b
Fix tests (#5819)
hjoaquim Nov 29, 2023
6d13807
debuggint int tests (#5823)
jmaslek Nov 29, 2023
dc81f6c
Standardize balance, income, cash for Intrinio (#5809)
piiq Nov 29, 2023
a96e52d
Docs/pro new widgets struct (#5805)
DidierRLopes Nov 30, 2023
5aaa855
Feature/release rc0 (#5821)
montezdesousa Nov 30, 2023
b65f51f
Account commands: add option to return user settings (#5825)
IgorWounds Nov 30, 2023
df99862
fix: search button? (#5831)
jose-donato Nov 30, 2023
fc95ded
Revamp `openbb-core` README (#5830)
hjoaquim Nov 30, 2023
5e92623
fix: second attempt (#5832)
jose-donato Nov 30, 2023
a784bba
Move pytest dependencies from openbb level to to core dev deps level …
piiq Nov 30, 2023
2999931
Prevent gh-actions from publishing v3 unless explicitly asked to (#5835)
piiq Nov 30, 2023
2931c08
updating to pick up the core folder instead (platform folder was drop…
hjoaquim Nov 30, 2023
aea1c3b
Hotfix/test fix (#5827)
IgorWounds Nov 30, 2023
10cfd1e
Release/4.0.0 (#5837)
hjoaquim Nov 30, 2023
c047cfe
docs/new-working-docs: New working docs branch (#5768)
deeleeramone Dec 1, 2023
8273a20
fix docs (#5847)
DidierRLopes Dec 1, 2023
905b7fd
Small change in extensions doc (#5844)
jmaslek Dec 1, 2023
1d50557
Google Colab Install Notebook (#5841)
deeleeramone Dec 1, 2023
b75346e
Update API endpoint from deprecated api.coindix to new api.nanoly
davidtran001 Dec 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
45 changes: 45 additions & 0 deletions .codespell.ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
ake
alle
ba
brin
buda
buidl
buil
certi
commun
coo
creat
datas
ether
fo
gard
hel
hist
hsi
ist
jewl
ket
mape
mis
navagation
nd
nwe
operatio
ot
parana
pres
ro
ser
shold
shs
statics
te
toke
vai
varian
vie
welp
wew
yeld
zar
zlot
16 changes: 16 additions & 0 deletions .codespell.skip
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
./tests
.git
*.css
*.csv
*.html
*.ini
*.ipynb
*.js
*.json
*.lock
*.scss
*.txt
*.yaml
./build/pyinstaller
./website/config.toml
./**/node_modules
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
omit =
env/*
tests/*
**/tests/**
**/package/**
source = .
73 changes: 61 additions & 12 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,80 @@
# Description
# Pull Request OpenBB

- [ ] Summary of the change / bug fix.
## The OpenBBTerminal

<details>
<summary> Pull Request for the OpenBBTerminal</summary>

### Description

- [ ] Summary of the change/ bug fix.
- [ ] Link # issue, if applicable.
- [ ] Screenshot of the feature or the bug before/after fix, if applicable.
- [ ] Relevant motivation and context.
- [ ] List any dependencies that are required for this change.

### How has this been tested?

# How has this been tested?
- Please describe the tests that you ran to verify your changes.
- Please provide instructions so we can reproduce.
- Please also list any relevant details for your test configuration.

* Please describe the tests that you ran to verify your changes.
* Provide instructions so we can reproduce.
* Please also list any relevant details for your test configuration.
- [ ] Make sure affected commands still run in terminal
- [ ] Ensure the SDK still works
- [ ] Check any related reports
- [ ] Ensure the affected commands still execute in the OpenBB Terminal.
- [ ] Ensure the Platform (previously named SDK) is working as intended.
- [ ] Check any related reports.

### Checklist

# Checklist:

- [ ] I ensure I have self-reviewed my code.
- [ ] I have commented/documented my code, particularly in hard-to-understand sections.
- [ ] I have adhered to the GitFlow naming convention and my branch name is in the format of `feature/feature-name` or `hotfix/hotfix-name`.
- [ ] Update [our documentation](https://openbb-finance.github.io/OpenBBTerminal/) following [these guidelines](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/website). Update any user guides that are affected by the changes.
- [ ] Update our tests following [these guidelines](https://github.com/OpenBB-finance/OpenBBTerminal/tree/main/tests).
- [ ] Make sure you are following our [CONTRIBUTING guidelines](https://github.com/OpenBB-finance/OpenBBTerminal/blob/main/CONTRIBUTING.md).
- [ ] If a feature was added make sure to add it to the corresponding [integration test script](https://github.com/OpenBB-finance/OpenBBTerminal/tree/develop/openbb_terminal/miscellaneous/integration_tests_scripts).

</details>

## The OpenBB Platform

<details>
<summary> Pull Request for the OpenBB Platform</summary>

### Description

- [ ] Summary of the change/ bug fix.
- [ ] Link # issue, if applicable.
- [ ] Screenshot of the feature or the bug before/after fix, if applicable.
- [ ] Relevant motivation and context.
- [ ] List any dependencies that are required for this change.

### How has this been tested?

- Please describe the tests that you ran to verify your changes.
- Please provide instructions so we can reproduce.
- Please also list any relevant details for your test configuration.

- [ ] Ensure all unit and integration tests pass.
- If you modified/added command(s):
- [ ] Ensure the command(s) execute with the expected output.
- [ ] API.
- [ ] Python Interface.
- [ ] If applicable, please add new tests for the command (see [CONTRIBUTING.md](/openbb_platform/CONTRIBUTING.md) to leverage semi-automated testing).
- If a new provider was introduced or a new fetcher was added to an existing provider:
- [ ] Ensure the existing tests pass.
- [ ] Ensure the new provider and/or fetcher is stable and usable.
- [ ] If applicable, please add new tests for the provider and/or fetcher (see [CONTRIBUTING.md](/openbb_platform/CONTRIBUTING.md) to leverage semi-automated testing).
- If a new provider or extension was added:
- [ ] Update the list of [Extensions](/openbb_platform/EXTENSIONS.md).
- [ ] Update the list of [Providers](/openbb_platform/PROVIDERS.md).
- [ ] If it's a community extension or provider, update the [integration tests GitHub Action workflow](/.github/workflows/platform-api-integration-test.yml).

### Checklist

# Others
- [ ] I have performed a self-review of my own code.
- [ ] I have commented my code, particularly in hard-to-understand areas.
- [ ] I have adhered to the GitFlow naming convention and my branch name is in the format of `feature/feature-name` or `hotfix/hotfix-name`.
- [ ] I ensure that I am following th [CONTRIBUTING guidelines](https://github.com/OpenBB-finance/OpenBBTerminal/blob/main/CONTRIBUTING.md).
- [ ] (If applicable) I have updated tests following [these guidelines](/openbb_platform/CONTRIBUTING.md#qa-your-extension).

</details>
3 changes: 1 addition & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ env:
on:
push:
branches:
- release/*
- main
- release/v3/*

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ on:
- main
- release/*
pull_request:
types: [closed]
branches:
- develop
types: [opened, synchronize, reopened, closed]
branches:
- develop
- 'docs/*'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down Expand Up @@ -64,7 +65,13 @@ jobs:
source $VENV
pip uninstall Brotli -y
pytest tests/website --autodoc
python website/generate_sdk_markdown.py && python website/generate_terminal_markdown.py
python website/generate_sdk_v3_markdown.py
python website/generate_terminal_v3_markdown.py
pip install -U poetry
python openbb_platform/dev_install.py -e all
pip uninstall nbmake -y
python website/generate_platform_v4_markdown.py
python website/generate_widgets_library.py

- name: Setup Node
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labels-PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
with:
mode: minimum
count: 1
labels: "guides, bug, build, do not merge, docker, docs, duplicate, enhancement, feat XS, feat S, feat M, feat L, feat XL, help wanted, refactor, tests, discord, dependencies, notebookreports, dashboards, analytics, portfolio, installer, SDK, release "
labels: "guides, bug, build, do not merge, docker, docs, duplicate, enhancement, feat XS, feat S, feat M, feat L, feat XL, help wanted, refactor, tests, discord, dependencies, notebookreports, dashboards, analytics, portfolio, installer, platform, release "
- uses: mheap/github-action-required-labels@v1
with:
mode: exactly
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
types: [opened, synchronize, edited]
push:
branches:
- 'feature/*'
- 'hotfix/*'
- 'release/*'
- "feature/*"
- "hotfix/*"
- "release/*"
merge_group:
types: [checks_requested]

Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
pip install types-pytz types-requests types-termcolor types-tabulate types-PyYAML types-python-dateutil types-setuptools types-six
- run: bandit -x ./tests -r . || true
- run: black --diff --check .
- run: codespell --ignore-words-list=vai,mis,gard,commun,statics,ro,zar,zlot,jewl,ba,buil,coo,ether,hist,hsi,mape,navagation,operatio,pres,ser,yeld,shold,ist,varian,datas,ake,creat,vie,hel,ket,toke,certi,buidl,ot,te,buda,shs,welp --quiet-level=2 --skip=./tests,.git,*.css,*.csv,*.html,*.ini,*.ipynb,*.js,*.json,*.lock,*.scss,*.txt,*.yaml,./build/pyinstaller,./website/config.toml -x openbb_terminal/economy/fedreserve_model.py
- run: codespell --ignore-words=.codespell.ignore --skip="$(tr '\n' ',' < .codespell.skip | sed 's/,$//')" --quiet-level=2
- run: ruff .
- run: mypy --ignore-missing-imports openbb_terminal
- run: pylint terminal.py openbb_terminal tests
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ jobs:
with:
workflow: pypi-nightly.yml
token: ${{ secrets.GITHUB_TOKEN }}

trigger-api-integration-test:
runs-on: ubuntu-latest
steps:
- name: Trigger Platform API Integration Test
uses: aurelien-baudet/workflow-dispatch@v2
with:
workflow: platform-api-integration-test.yml
token: ${{ secrets.GITHUB_TOKEN }}
120 changes: 120 additions & 0 deletions .github/workflows/platform-api-integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: API Integration Tests

on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
api-integration-tests:
runs-on: ubuntu-latest
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
OPENBB_API_AUTH: true
OPENBB_API_USERNAME: "USER"
OPENBB_API_PASSWORD: "PASS"

steps:
- name: Slack Notification - Starting
uses: act10ns/slack@v1
with:
status: starting
channel: "#workflows"
message: Starting API Integration Test...
if: always()

- name: Checkout code
uses: actions/checkout@v3

- name: Checkout specific ref
if: github.event_name == 'pull_request'
run: git fetch origin ${{ github.event.pull_request.head.ref }} && git checkout FETCH_HEAD

- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
architecture: x64

- name: Load cached venv
id: cached-python-environment
uses: actions/cache@v3
with:
path: runner_env
key: runner_env-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock', '**/dev_install.py') }}

- name: Install Dependencies
if: steps.cached-python-environment.outputs.cache-hit != 'true'
run: |
python -m venv runner_env
source runner_env/bin/activate
pip install poetry toml
python openbb_platform/dev_install.py -e all

- name: Populate System Setting Files
run: |
mkdir -p ~/.openbb_platform
touch ~/.openbb_platform/system_settings.json
echo '{"log_collect":false}' > ~/.openbb_platform/system_settings.json
cat ~/.openbb_platform/system_settings.json

- name: Create and Populate user_settings.json from GitHub Secrets
run: |
touch ~/.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 }}",
"intrinio_api_key": "${{ secrets.INTRINIO_API_KEY }}",
"tradingeconomics_api_key": "${{ secrets.TRADINGECONOMICS_API_KEY }}",
"quandl_api_key": "${{ secrets.QUANDL_API_KEY }}",
"biztoc_api_key": "${{ secrets.BIZTOC_API_KEY }}",
"nasdaq_api_key": "${{ secrets.NASDAQ_API_KEY }}",
"tiingo_token": "${{ secrets.TIINGO_TOKEN }}"
}
}' > ~/.openbb_platform/user_settings.json

- name: Launch the Uvicorn Process
run: |
source runner_env/bin/activate
uvicorn openbb_core.api.rest_api:app --host 0.0.0.0 --port 8000 --reload &

- name: Wait for 42 seconds
run: sleep 42

- name: Run API Integration Tests
run: |
source runner_env/bin/activate
pip list
cd openbb_platform
pytest -m integration

- name: Cache pip packages
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: runner_env-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock', '**/dev_install.py') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Upload summary to Slack
uses: adrey/slack-file-upload-action@master
with:
token: ${{ secrets.SLACK_API_TOKEN }}
initial_comment: "API Integration test summary"
title: "Integration test summary"
path: summary.txt
channel: ${{ secrets.SLACK_CHANNEL_ID }}

- name: Slack Notification - Success/Failure
uses: act10ns/slack@v1
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: "#workflows"
if: always()
Loading