forked from zipline-live/zipline
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (56 loc) · 1.64 KB
/
ci.yaml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Zipline CI (Ubuntu)
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test-ubuntu:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: [3.6, 3.7]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 # use latest v2
with:
python-version: ${{ matrix.python-version }}
- name: Install TA lib (ubuntu)
run: |
wget https://s3.amazonaws.com/quantopian-orchestration/packages/ta-lib-0.4.0-src.tar.gz
tar xvfz ta-lib-0.4.0-src.tar.gz
cd ta-lib
./configure
make
sudo make install
sudo ldconfig
- name: Install requirements
env:
DISABLE_BCOLZ_AVX2: true
LD_LIBRARY_PATH: /usr/local/lib:$LD_LIBRARY_PATH
run: |
python3 -m pip install pandas numpy scipy cython==0.29.21
python3 -m pip install bcolz==1.2.1
python3 -m pip install ta-lib
python3 -m pip install wheel
python3 -m pip install -r etc/requirements_build.in
python3 -m pip install -r etc/requirements_dev.in
python3 -m pip install -r etc/requirements_blaze.in
python3 -m pip install -e .
- name: install pandas 1.1.5 for py37
if: matrix.python-version == 3.7
run: |
pip install pandas==1.1.5
- name: Run tests
env:
LD_LIBRARY_PATH: /usr/local/lib:$LD_LIBRARY_PATH
if: matrix.python-version == 3.6
run: |
nosetests tests