Skip to content

Commit 2191ffb

Browse files
authored
πŸ₯ chore(ci): keepalive GHA πŸ₯ (#249)
* forgot this commit * #patch * change wiki table column name * change vol error
1 parent d5fc942 commit 2191ffb

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Keepalive Workflow
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
permissions:
6+
actions: write
7+
jobs:
8+
cronjob-based-github-action:
9+
name: Keepalive Workflow
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: gautamkrishnar/keepalive-workflow@v2
14+
with:
15+
workflow_files: "api.yml, deps.yml, dividends.yml, indicators.yml, indices.yml, intraday.yml, model.yml, ohlc.yml, optimize.yml, predict.yml, splits.yml, symbols.yml, unrate.yml, visualize.yml"
16+
time_elapsed: "0"
17+
use_api: true

β€Žhyperdrive/DataSource.pyβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def _get_latest_ndx():
401401
soup = BeautifulSoup(res.text, 'html.parser')
402402
html = soup.select("table#constituents")[0]
403403
df = pd.read_html(str(html))[0]
404-
symbols = df[C.SYMBOL]
404+
symbols = df['Ticker']
405405
today = datetime.today().strftime(C.DATE_FMT)
406406
df = pd.DataFrame({
407407
C.TIME: len(symbols) * [today],

β€Žtest/test_Exchange.pyβ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ def test_order(self):
161161
except Exception as e:
162162
# if Kraken balance is low/zero, then tests may fail
163163
exception_name = e.__str__()
164-
vol_error = "['EGeneral:Invalid arguments:volume']"
165-
binance_preferred = C.PREF_EXCHANGE == C.BINANCE
166-
if not (exception_name == vol_error and binance_preferred):
164+
vol_error = "['EGeneral:Invalid arguments:volume minimum not met']"
165+
if not (exception_name == vol_error):
167166
raise e
168167

169168
def test_standardize_order(self):

0 commit comments

Comments
Β (0)