Skip to content

Commit

Permalink
Merge pull request #24 from minggnim/workflow-talib-binary
Browse files Browse the repository at this point in the history
remove install ta-lib from binary
  • Loading branch information
minggnim authored Jun 7, 2022
2 parents 8c89274 + 915f259 commit 6887b34
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,36 +14,26 @@ jobs:

runs-on: ubuntu-latest
strategy:
fail-fast: false
fail-fast: true
matrix:
python-version: ["3.8", "3.9"]
python-version: ["3.6", "3.7", "3.8", "3.9"]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install ta-lib
run: |
wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
tar -xzf ta-lib-0.4.0-src.tar.gz
cd ta-lib/
sudo ./configure
sudo make
sudo make install
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
# if [ -f requirements.txt ]; then pip install . -r requirements.txt; fi
pip install .
pip install .[full]
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=20 --max-line-length=140 --statistics
# - name: Test with pytest
# run: |
# pytest
- name: Test with pytest
run: |
pytest tests/test_stop_vars.py
3 changes: 2 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = crypto-strategy
version = 0.1.16
version = 0.1.17
author= Ming Gao
author_email = [email protected]
url = https://github.com/minggnim/crypto-strategy
Expand All @@ -23,6 +23,7 @@ install_requires =
numpy
pandas
vectorbt
talib-bin
python-binance

[options.packages.find]
Expand Down

0 comments on commit 6887b34

Please sign in to comment.