forked from MDAnalysis/mdanalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
143 lines (140 loc) · 3.98 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
140
141
142
143
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'
NUMPY_MIN: '1.21.0'
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-Python310-64bit-full-wheel:
PYTHON_VERSION: '3.10'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.22.3'
imageName: 'windows-2019'
Win-Python38-64bit-full-wheel:
PYTHON_VERSION: '3.8'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.21.0'
imageName: 'windows-2019'
Linux-Python310-64bit-full-wheel:
PYTHON_VERSION: '3.10'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.21.6'
imageName: 'ubuntu-latest'
Linux-Python38-64bit-full-wheel:
PYTHON_VERSION: '3.8'
PYTHON_ARCH: 'x64'
BUILD_TYPE: 'wheel'
NUMPY_MIN: '1.21.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 -v 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,scipy
cython
hypothesis
matplotlib
numpy
packaging
pytest
pytest-cov
pytest-xdist
scikit-learn
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 and 32bit)'
condition: and(succeeded(), ne(variables['NUMPY_MIN'], ''))
- script: >-
python -m pip install
biopython
chemfiles>=0.10
duecredit
gsd
joblib
GridDataFormats
mmtf-python
networkx
parmed
pytng>=0.2.3
tidynamics>=1.0.0
rdkit>=2020.03.1
displayName: 'Install additional dependencies for 64-bit tests'
condition: and(succeeded(), eq(variables['PYTHON_ARCH'], 'x64'))
- script: >-
pip list
displayName: 'List of installed dependencies'
- 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'