-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 824 Bytes
/
python-tests.yml
File metadata and controls
34 lines (26 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Python Tests
on: [push, pull_request]
jobs:
test-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install TA-Lib from source
run: |
curl -L -o ta-lib-0.6.4-src.tar.gz https://github.com/ta-lib/ta-lib/releases/download/v0.6.4/ta-lib-0.6.4-src.tar.gz
tar -xzf ta-lib-0.6.4-src.tar.gz
cd ta-lib-0.6.4/
./configure --prefix=/usr
make
sudo make install
- name: Install TA-lib
run: |
python3 -m pip install TA-Lib
- name: Install all other dependencies
run: pip install -r requirements.txt
- name: Python Tests
run: PYTHONPATH=. pytest