forked from inaos/iron-array-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-wheels-test.yml
119 lines (100 loc) · 3.2 KB
/
azure-pipelines-wheels-test.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
jobs:
- job: 'Linux'
displayName: 'Linux'
pool:
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
# Activate 3.9 when Azure pipelines would support it
# https://github.com/Azure/azure-functions-python-worker/issues/742
# Python39:
# python.version: '3.9'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- checkout: self
submodules: recursive
persistCredentials: true
- bash: |
mkdir -p $HOME/.pip
echo "[global]" > $HOME/.pip/pip.conf
echo "index-url = https://licensed:AKCp5bBraH7CasbsYCURsjzkbjXwVwdYcT7u39EiuL6GjnK1VKfKQWCd1E2E64mHokU5YUHku@inaos.jfrog.io/artifactory/api/pypi/pypi-iron-array/simple" >> $HOME/.pip/pip.conf
echo "extra-index-url = https://pypi.org/simple/" >> $HOME/.pip/pip.conf
displayName: Install iron-array license
- bash: |
pip install iarray
cp -r iarray/tests /tmp/tests
cd /tmp
python -m pytest tests
- job: 'macOS'
displayName: 'macOS'
pool:
vmImage: 'macOS-latest'
strategy:
matrix:
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
# Activate 3.9 when Azure pipelines would support it
# https://github.com/Azure/azure-functions-python-worker/issues/742
# Python39:
# python.version: '3.9'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- checkout: self
submodules: recursive
persistCredentials: true
- bash: |
mkdir -p $HOME/.pip
echo "[global]" > $HOME/.pip/pip.conf
echo "index-url = https://licensed:AKCp5bBraH7CasbsYCURsjzkbjXwVwdYcT7u39EiuL6GjnK1VKfKQWCd1E2E64mHokU5YUHku@inaos.jfrog.io/artifactory/api/pypi/pypi-iron-array/simple" >> $HOME/.pip/pip.conf
echo "extra-index-url = https://pypi.org/simple/" >> $HOME/.pip/pip.conf
displayName: Install iron-array license
- bash: |
pip install iarray
cp -r iarray/tests /tmp/tests
cd /tmp
python -m pytest tests
- job: 'Windows'
displayName: 'Windows'
pool:
vmImage: 'windows-latest'
strategy:
matrix:
Python37:
python.version: '3.7'
Python38:
python.version: '3.8'
# Activate 3.9 when Azure pipelines would support it
# https://github.com/Azure/azure-functions-python-worker/issues/742
# Python39:
# python.version: '3.9'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'
- checkout: self
submodules: recursive
persistCredentials: true
- bash: |
mkdir -p $APPDATA/pip
echo "[global]" > $APPDATA/pip/pip.ini
echo "index-url = https://licensed:AKCp5bBraH7CasbsYCURsjzkbjXwVwdYcT7u39EiuL6GjnK1VKfKQWCd1E2E64mHokU5YUHku@inaos.jfrog.io/artifactory/api/pypi/pypi-iron-array/simple" >> $APPDATA/pip/pip.ini
echo "extra-index-url = https://pypi.org/simple/" >> $APPDATA/pip/pip.ini
displayName: Install iron-array license
- bash: |
pip install iarray
cp -r iarray/tests /tmp/tests
cd /tmp
python -m pytest tests