-
Notifications
You must be signed in to change notification settings - Fork 4.7k
57 lines (53 loc) · 1.77 KB
/
windows_ci.yml
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
name: Zipline CI (Windows)
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
python-version: [3.6]
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
# - name: pip cache
# uses: actions/cache@v2
# with:
# path: ${{ steps.pip-cache.outputs.dir }}
# key: ${{ runner.os }}-pip-${{ hashFiles('etc/requirements_py36_locked.txt') }}
# restore-keys: |
# ${{ runner.os }}-pip-
# - name: Install requirements
# run: |
# python -m pip install -r etc/requirements_build.in -c etc/requirements_locked.txt
- name: Init Conda in Powershell
run: |
C:\Miniconda\condabin\conda.bat init powershell
- name: Install scientific python requirements
run: |
conda create -y -vv --name test python=${{matrix.python-version}} pip pandas=0.22.0 numpy=1.19.1 scipy=1.5.0 cython=0.29.21
- uses: ilammy/msvc-dev-cmd@v1
- name: Install TA lib
run: |
(New-Object Net.WebClient).DownloadFile('http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-msvc.zip', 'ta-lib-0.4.0-msvc.zip')
Add-Type -AssemblyName System.IO.Compression.FileSystem;[System.IO.Compression.ZipFile]::ExtractToDirectory('ta-lib-0.4.0-msvc.zip', 'C:\')
cd C:\ta-lib\c\make\cdr\win32\msvc
nmake
conda activate test
pip install ta-lib
- name: Install other requirements
run: |
conda activate test
pip install --no-binary=bcolz -e .[all] -c etc/requirements_py36_locked.txt
- name: Run tests
run: |
conda activate test
nosetests -vv tests