Move tests back one level. Update links to badges

This commit is contained in:
Artem Veremey
2021-03-04 21:33:14 -08:00
parent 565222ae6d
commit ed733f07ba
12 changed files with 20 additions and 18 deletions

View File

@@ -68,7 +68,7 @@ jobs:
MPLBACKEND: Agg
run: |
source $VENV
pytest gamestonk_terminal/tests/
pytest tests/
tests:
needs: test
runs-on: ${{ matrix.os }}
@@ -116,4 +116,4 @@ jobs:
MPLBACKEND: Agg
run: |
source $VENV
pytest gamestonk_terminal/tests/
pytest tests/

View File

@@ -1,8 +1,8 @@
# GamestonkTerminal 🚀
[![Build Status](https://api.travis-ci.org/aia/GamestonkTerminal.svg?branch=main)](https://travis-ci.org/aia/GamestonkTerminal)
[![GitHub release](https://img.shields.io/github/release/aia/GamestonkTerminal.svg?maxAge=3600)](https://github.com/aia/GamestonkTerminal/releases)
[![Build Status](https://github.com/DidierRLopes/GamestonkTerminal/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/DidierRLopes/GamestonkTerminal/actions)
[![GitHub release](https://img.shields.io/github/release/DidierRLopes/GamestonkTerminal.svg?maxAge=3600)](https://github.com/DidierRLopes/GamestonkTerminal/releases)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
## About
@@ -74,7 +74,6 @@ Command|Description|Source
`spachero` |great website for SPACs research |[SpacHero](https://www.spachero.com/)
`uwhales` |good website for SPACs research |[UnusualWhales](https://unusualwhales.com/)
### [Market Sentiment](gamestonk_terminal/sentiment/README.md) <a name="Market_Sentiment"></a>
Command|Description
@@ -196,7 +195,6 @@ Command|Explanation|Source
`short` |short interest |[Quandl](https://www.quandl.com/)
`warnings` |company warnings according to Sean Seah book |[MarketWatch](https://www.marketwatch.com/)
### [Prediction Techniques](gamestonk_terminal/prediction_techniques/README.md) <a name="Prediction_Techniques"></a>
Command|Technique|Sources

View File

@@ -451,18 +451,22 @@ def main():
b_quit = pm.pred_menu(df_stock, s_ticker, s_start, s_interval)
# If stock data is intradaily, we need to get data again as prediction techniques work on daily adjusted data
else:
ts = TimeSeries(key=cfg.API_KEY_ALPHAVANTAGE, output_format="pandas")
# pylint: disable=unbalanced-tuple-unpacking
df_stock_pred, _ = ts.get_daily_adjusted(
symbol=s_ticker, outputsize="full"
)
# pylint: disable=no-member
df_stock_pred = df_stock_pred.sort_index(ascending=True)
df_stock_pred = df_stock_pred[s_start:]
b_quit = pm.pred_menu(
df_stock_pred, s_ticker, s_start, s_interval="1440min"
)
try:
ts = TimeSeries(
key=cfg.API_KEY_ALPHAVANTAGE, output_format="pandas"
)
df_stock_pred, _ = ts.get_daily_adjusted(
symbol=s_ticker, outputsize="full"
)
df_stock_pred = df_stock_pred.sort_index(ascending=True)
df_stock_pred = df_stock_pred[s_start:]
b_quit = pm.pred_menu(
df_stock_pred, s_ticker, s_start, s_interval="1440min"
)
except:
print("Either the ticker or the API_KEY are invalids. Try again!")
b_quit = False
return
if b_quit:
print(