diff --git a/.github/workflows/deps.yml b/.github/workflows/deps.yml index f860744..ab2dcc2 100755 --- a/.github/workflows/deps.yml +++ b/.github/workflows/deps.yml @@ -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: @@ -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: diff --git a/requirements.txt b/requirements.txt index d5ed999..8c0e583 100755 --- a/requirements.txt +++ b/requirements.txt @@ -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 @@ -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 diff --git a/util/update.py b/util/update.py index cbec84a..c15e6c0 100755 --- a/util/update.py +++ b/util/update.py @@ -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: