forked from quantopian/zipline
-
Notifications
You must be signed in to change notification settings - Fork 218
91 lines (76 loc) · 2.63 KB
/
conda_package.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Anaconda
on:
workflow_dispatch
jobs:
build_wheels:
name: py${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
MACOSX_DEPLOYMENT_TARGET: 10.15
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
python: [ '3.7', '3.8', '3.9' ]
exclude:
- os: macos-latest
python: '3.9'
steps:
- name: set Xcode version
uses: maxim-lobanov/setup-xcode@v1
if: ${{ matrix.os == 'macos-latest' }}
with:
xcode-version: '11.5'
- name: Checkout zipline-reloaded
uses: actions/checkout@v4
- name: Setup miniconda3
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
auto-update-conda: true
channel-priority: strict
mamba-version: "*"
python-version: ${{ matrix.python }}
activate-environment: recipe
channels: ml4t, conda-forge, defaults, anaconda, ranaroussi, adteam
- name: create uploader
# address broken client under py3.9
if: ${{ matrix.python == '3.9' }}
run: conda create -n up python=3.7 anaconda-client
- name: conda build for ${{ matrix.os }}
run: |
conda activate recipe
mamba install -n recipe boa conda-verify anaconda-client
conda mambabuild --output-folder . --python ${{ matrix.python }} conda/zipline-reloaded
- name: activate uploader
# address broken client under py3.9
if: ${{ matrix.python == '3.9' }}
run: conda activate up
- name: store windows result
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'windows-latest' }}
with:
path: win-64/*.tar.bz2
- name: upload windows
if: ${{ matrix.os == 'windows-latest' }}
run: anaconda upload -l main -u ml4t win-64/*.tar.bz2
- name: store linux result
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
path: linux-64/*.tar.bz2
- name: upload linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: anaconda upload -l main -u ml4t linux-64/*.tar.bz2
- name: store macos result
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'macos-latest' }}
with:
path: osx-64/*.tar.bz2
- name: upload macos
if: ${{ matrix.os == 'macos-latest' }}
run: anaconda upload -l main -u ml4t osx-64/*.tar.bz2