Install from sdist in CI (#4335)

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Update azure-pipelines.yml
This commit is contained in:
Ines Montani 2019-09-28 21:18:52 +02:00 committed by Matthew Honnibal
parent 48e697dd00
commit 7cca6b57a7
1 changed files with 13 additions and 3 deletions

View File

@ -79,14 +79,24 @@ jobs:
# Downgrading pip is necessary to prevent a wheel version incompatiblity.
# Might be fixed in the future or some other way, so investigate again.
- script: |
python -m pip install --upgrade pip==18.1
python -m pip install -U pip==18.1 setuptools
pip install -r requirements.txt
displayName: 'Install dependencies'
- script: |
python setup.py build_ext --inplace
pip install -e .
displayName: 'Build and install'
python setup.py sdist --formats=gztar
displayName: 'Compile and build sdist'
- task: DeleteFiles@1
inputs:
contents: 'spacy'
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 tests
displayName: 'Run tests'