Skip to content

Commit

Permalink
wip - TA-Lib-Precompiled(v0.4.25) now replaces TA-Lib installation us…
Browse files Browse the repository at this point in the history
…ing source for test and build workflows, test workflow moved to ubuntu runner
  • Loading branch information
pranjal-joshi committed Oct 5, 2023
1 parent dae5e0d commit b270b5e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/workflow-build-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
jobs:

# Job for builing packages
Build-Executables:
name: Build Packages (Disabled onwards v2.03)
Build-Executables-(Disabled onwards v2.03):
name: Build Packages
#needs: Create-Release
runs-on: ${{ matrix.os }}
strategy:
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/workflow-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# Test the source-code
Test-Source:

runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -35,25 +35,10 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies for TA-Lib
run: |
python -m pip install --upgrade pip
cd .github/dependencies/
echo %cd%
pip install TA_Lib-0.4.19-cp39-cp39-win_amd64.whl
# - name: Install Numpy-MKL for Windows
# run: |
# echo Downloading Numpy-MKL (212MB), Please wait!
# powershell.exe -Command (new-object System.Net.WebClient).DownloadFile('https://download.lfd.uci.edu/pythonlibs/w4tscw6k/numpy-1.20.2+mkl-cp39-cp39-win_amd64.whl','numpy-1.20.2+mkl-cp39-cp39-win_amd64.whl')
# pip install numpy-1.20.2+mkl-cp39-cp39-win_amd64.whl

- name: Install dependencies using pip
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytest-mock
pip install numpy==1.21.0
pip install ta-lib
pip install -r requirements.txt
- name: Lint with flake8
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ WORKDIR /opt/program

RUN chmod +x *

# Removed build ta-lib from source as we're using [pip3 install TA-Lib-Precompiled] for faster docker build

# WORKDIR /opt/program/.github/dependencies/
# RUN tar -xzf ta-lib-0.4.0-src.tar.gz

Expand All @@ -39,8 +41,6 @@ RUN chmod +x *

WORKDIR /opt/program/
RUN python3 -m pip install --upgrade pip
RUN pip3 install TA-Lib-Precompiled
# RUN pip3 install ta-lib==0.4.24

RUN pip3 install -r "requirements.txt"

Expand Down

0 comments on commit b270b5e

Please sign in to comment.