forked from MDAnalysis/mdanalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
139 lines (136 loc) · 3.86 KB
/
azure-pipelines.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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
trigger:
# start a new build for every push
batch: False
branches:
include:
- develop
paths:
include:
- '*'
pr:
branches:
include:
- '*' # must quote since "*" is a YAML reserved character; we want a string
jobs:
- job: Azure_Tests
condition: and(succeeded(), ne(variables['Build.SourceBranch'], 'refs/heads/master')) # skip for PR merges
variables:
MPLBACKEND: agg
strategy:
matrix:
Win-Python38-32bit-full:
PYTHON_VERSION: '3.8'
PYTHON_ARCH: 'x86'
BUILD_TYPE: 'normal'
imageName: 'windows-2019'
Win-Python38-64bit-full:
PYTHON_VERSION: '3.8'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'normal'
imageName: 'windows-2019'
Win-Python310-64bit-full:
PYTHON_VERSION: '3.10'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'normal'
imageName: 'windows-2019'
Win-Python39-64bit-full-wheel:
PYTHON_VERSION: '3.9'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.20.0'
imageName: 'windows-2019'
Win-Python38-64bit-full-wheel:
PYTHON_VERSION: '3.8'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.20.0'
imageName: 'windows-2019'
Linux-Python39-64bit-full-wheel:
PYTHON_VERSION: '3.9'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.20.0'
imageName: 'ubuntu-latest'
Linux-Python38-64bit-full-wheel:
PYTHON_VERSION: '3.8'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.20.0'
imageName: 'ubuntu-latest'
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: $(PYTHON_VERSION)
addToPath: true
architecture: $(PYTHON_ARCH)
# a PEP518 compliant wheel build shoud be
# able to build MDAnalysis in an isolated
# environment *before* any deps are installed
# "manually"
- powershell: |
cd package
python -m pip install .
cd ..
displayName: 'Build MDAnalysis (wheel)'
condition: and(succeeded(), eq(variables['BUILD_TYPE'], 'wheel'))
- script: python -m pip install --upgrade pip setuptools wheel
displayName: 'Install tools'
- script: >-
python -m pip install --only-binary=h5py
cython
hypothesis
matplotlib
numpy
packaging
pytest
pytest-cov
pytest-xdist
scikit-learn
scipy
h5py>=2.10
tqdm
threadpoolctl
fasteners
displayName: 'Install dependencies'
# for wheel install testing, we pin to an
# older NumPy, the oldest version we support and that
# supports the Python version in use
# to check the ABI compatibility of our wheels
- script: >-
python -m pip install numpy==$(NUMPY_MIN)
displayName: 'pin to older NumPy (wheel test)'
condition: and(succeeded(), eq(variables['BUILD_TYPE'], 'wheel'))
# TODO: recent rdkit is not on PyPI
- script: >-
python -m pip install
biopython
chemfiles>=0.10
duecredit
gsd
joblib
GridDataFormats
mmtf-python
networkx
parmed
tidynamics>=1.0.0
displayName: 'Install additional dependencies for 64-bit tests'
condition: and(succeeded(), eq(variables['PYTHON_ARCH'], 'x64'))
- powershell: |
cd package
python setup.py install
cd ..
cd testsuite
python setup.py install
cd ..
displayName: 'Build MDAnalysis'
condition: and(succeeded(), eq(variables['BUILD_TYPE'], 'normal'))
- powershell: |
cd testsuite
pytest MDAnalysisTests --disable-pytest-warnings -n 2 -rsx --cov=MDAnalysis
displayName: 'Run MDAnalysis Test Suite'
- script: |
curl -s https://codecov.io/bash | bash
condition: succeeded()
displayName: 'Codecov Coverage Data Upload'