forked from explosion/spacy-lookups-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
46 lines (39 loc) 路 1.15 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
trigger:
batch: true
jobs:
- job: "Test"
strategy:
matrix:
Python37Linux:
imageName: "ubuntu-16.04"
python.version: "3.7"
Python37Windows:
imageName: "vs2017-win2016"
python.version: "3.7"
Python37Mac:
imageName: "macos-10.14"
python.version: "3.7"
maxParallel: 4
pool:
vmImage: $(imageName)
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: "$(python.version)"
architecture: "x64"
- script: |
pip install -U setuptools wheel
pip install -r requirements.txt
displayName: "Install dependencies"
- script: python setup.py sdist --formats=gztar
displayName: "Build sdist"
- task: DeleteFiles@1
inputs:
contents: "spacy_lookups_data"
displayName: "Delete source directory"
- bash: |
SDIST=$(python -c "import os;print(os.listdir('./dist')[-1])" 2>&1)
pip install dist/$SDIST
displayName: "Install from sdist"
- script: python -m pytest --pyargs spacy_lookups_data
displayName: "Run tests"