forked from scverse/scanpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.azure-pipelines.yml
52 lines (45 loc) · 1.22 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
trigger:
- master
jobs:
- job: PyTest
pool:
vmImage: 'ubuntu-18.04'
strategy:
matrix:
Python37:
python.version: '3.7'
Python36:
python.version: '3.6'
anndata_dev:
python.version: '3.7'
ANNDATA_DEV: yes
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
export MPLBACKEND="agg"
echo $MPLBACKEND
displayName: 'Set env'
- script: |
python -m pip install --upgrade pip
pip install pytest-azurepipelines wheel
pip install -e .[dev,doc,test,louvain,leiden,magic,scvi,harmony]
displayName: 'Install dependencies'
- script: |
pip install -v git+https://github.com/theislab/anndata
displayName: 'Install development anndata'
condition: eq(variables['ANNDATA_DEV'], 'yes')
- script: |
pip install black
black . --check --diff
python -m scanpy.tests.blackdiff 10
displayName: 'Black'
- script: |
pytest --ignore=scanpy/tests/_images
displayName: 'PyTest'
- script: |
python setup.py check --restructuredtext --strict
rst2html.py --halt=2 README.rst >/dev/null
displayName: 'rst2html'