Skip to content

Commit

Permalink
TST MAINT github action python 3.11 DEP requirements updates
Browse files Browse the repository at this point in the history
  • Loading branch information
twopirllc committed Jun 12, 2024
1 parent fa7082b commit e345382
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,52 +17,52 @@ jobs:
# If failure occurs on one OS, it is still relevant to see which others may work
fail-fast: false
matrix:
python-version: ["3.9"]
python-version: ["3.11"]
os: [ubuntu-latest]

steps:
- name: Github Actor Info
run: |
echo "Workflow triggered by github actor ${{ github.actor }}"
- name: Github Actor Info
run: |
echo "Workflow triggered by github actor ${{ github.actor }}"
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Activate Cache for pip
uses: actions/cache@v3
id: cache-python-env
with:
path: ${{ env.pythonLocation }}
key: "v3-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}"
- name: Activate Cache for pip
uses: actions/cache@v3
id: cache-python-env
with:
path: ${{ env.pythonLocation }}
key: "v3-${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}"

- name: Update pip and friends
run: |
python -m pip install --upgrade pip setuptools wheel
if: steps.cache-python-env.outputs.cache-hit != 'true'
- name: Update pip and friends
run: |
python -m pip install --upgrade pip setuptools wheel
if: steps.cache-python-env.outputs.cache-hit != 'true'

- name: Install TA-lib
# Inspiration for this step is taken from here: https://github.com/mrjbq7/ta-lib/blob/master/.github/workflows/tests.yml
shell: bash
run: |
wget https://github.com/raw/mrjbq7/ta-lib/master/tools/build_talib_from_source.bash
chmod +x build_talib_from_source.bash
./build_talib_from_source.bash $DEPS_PATH
python -m pip install TA-lib
env:
DEPS_PATH: ${{ github.workspace }}/dependencies
TA_INCLUDE_PATH: ${{ github.workspace }}/dependencies/include
TA_LIBRARY_PATH: ${{ github.workspace }}/dependencies/lib
- name: Install TA-lib
# Inspiration for this step is taken from here: https://github.com/mrjbq7/ta-lib/blob/master/.github/workflows/tests.yml
shell: bash
run: |
wget https://github.com/raw/mrjbq7/ta-lib/master/tools/build_talib_from_source.bash
chmod +x build_talib_from_source.bash
./build_talib_from_source.bash $DEPS_PATH
python -m pip install TA-lib
env:
DEPS_PATH: ${{ github.workspace }}/dependencies
TA_INCLUDE_PATH: ${{ github.workspace }}/dependencies/include
TA_LIBRARY_PATH: ${{ github.workspace }}/dependencies/lib

- name: Install pandas-ta
run: |
python -m pip install ".[test]"
- name: Install pandas-ta
run: |
python -m pip install ".[test]"
- name: Run tests
shell: bash
run: |
make tests
- name: Run tests
shell: bash
run: |
make tests
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ ipython==8.21.0
matplotlib==3.8.2
matplotlib-inline==0.1.6
multitasking==0.0.11
numba==0.59.0
numba==0.59.1
numpy==1.26.4
pandas==2.2.0
pandas==2.2.2
pandas-datareader==0.10.0
pyarrow==15.0.0
scipy==1.12.0
scipy==1.13.1
setuptools=70.0.0
streamlit==1.31.0
TA-Lib==0.4.28
yfinance==0.2.36
yfinance==0.2.40

0 comments on commit e345382

Please sign in to comment.