Skip to content

Commit

Permalink
πŸ“Œ fix(deps): numpy πŸ“Œ (#234)
Browse files Browse the repository at this point in the history
* pin numpy to bad version

* #patch

* pin pandas too
  • Loading branch information
suchak1 authored May 4, 2023
1 parent 87ad925 commit e9765a1
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 2 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
PREF_EXCHANGE: ${{ secrets.PREF_EXCHANGE }}
TEST: true

jobs:
build:
Expand Down Expand Up @@ -81,6 +82,51 @@ jobs:
- name: Generate test coverage report
run: coverage report -m -i --fail-under=95

- name: Update symbols
run: python scripts/update_symbols.py

# - name: Update dividends
# run: python scripts/update_dividends.py

# - name: Update splits
# run: python scripts/update_splits.py

# - name: Update OHLC
# run: python scripts/update_ohlc.py

- name: Update social sentiment
run: python scripts/update_sentiment.py

# - name: Update intraday
# run: python scripts/update_intraday.py

- name: Update unemployment
run: python scripts/update_unrate.py

- name: Update API
env:
SYMBOL: ${{ secrets.SYMBOL }}
run: python scripts/update_api.py

- name: Decrypt scripts
env:
SALT: ${{ secrets.SALT }}
run: |
python util/decrypt.py encrypted/create_model.py
python util/decrypt.py encrypted/predict_signal.py
- name: Create model
run: python encrypted/create_model.py

- name: Create visualization
run: python scripts/visualize.py

- name: Predict signal
run: python encrypted/predict_signal.py

- name: Execute order
run: python scripts/execute_order.py

- name: Commit new file(s)
uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
python-dotenv == 1.0.0
pandas == 2.0.1
pandas == 1.5.3
robin-stocks == 2.1.0
boto3 == 1.26.123
polygon-api-client == 1.8.5
Expand All @@ -14,3 +14,4 @@ python-binance == 1.0.17
imbalanced-learn == 0.8.1
icosphere == 0.1.3
pynisher == 0.6.4
numpy == 1.23.5
7 changes: 6 additions & 1 deletion util/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
'imbalanced-learn',
# not supported - https://github.com/automl/auto-sklearn/issues/1582
# https://github.com/automl/auto-sklearn/blob/7eb667967c9f81de7cde5975024c858dd26982e2/requirements.txt#L19
'pynisher'
'pynisher',
# numpy >= 1.24 does not have attribute warnings
# https://stackoverflow.com/questions/74863592/attributeerror-module-numpy-has-no-attribute-warnings
'numpy',
# 'DataFrame' object has no attribute 'iteritems' => with pandas >= 2
'pandas'
]

with open(filename, 'r') as file:
Expand Down

0 comments on commit e9765a1

Please sign in to comment.