mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-13 05:07:03 +03:00
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:
parent
48e697dd00
commit
7cca6b57a7
|
@ -79,14 +79,24 @@ jobs:
|
||||||
# Downgrading pip is necessary to prevent a wheel version incompatiblity.
|
# Downgrading pip is necessary to prevent a wheel version incompatiblity.
|
||||||
# Might be fixed in the future or some other way, so investigate again.
|
# Might be fixed in the future or some other way, so investigate again.
|
||||||
- script: |
|
- script: |
|
||||||
python -m pip install --upgrade pip==18.1
|
python -m pip install -U pip==18.1 setuptools
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
displayName: 'Install dependencies'
|
displayName: 'Install dependencies'
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
python setup.py build_ext --inplace
|
python setup.py build_ext --inplace
|
||||||
pip install -e .
|
python setup.py sdist --formats=gztar
|
||||||
displayName: 'Build and install'
|
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
|
- script: python -m pytest tests
|
||||||
displayName: 'Run tests'
|
displayName: 'Run tests'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user