CI updates for python 3.5 (#6354)

* Update pip in CI

* Use --prefer-binary

* Use `--prefer-binary`
* Delete all installed packages before testing source install

* sdist install with --only-binary :all:
This commit is contained in:
Adriane Boyd 2020-11-06 13:35:51 +01:00 committed by GitHub
parent 20d72de986
commit 90550552a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ jobs:
- script: |
python -m pip install -U setuptools
pip install -r requirements.txt
pip install -r requirements.txt --prefer-binary
displayName: 'Install dependencies'
- script: |
@ -95,9 +95,13 @@ jobs:
displayName: 'Delete source directory'
- bash: |
pip freeze > installed.txt
pip uninstall -y -r installed.txt
SDIST=$(python -c "import os;print(os.listdir('./dist')[-1])" 2>&1)
pip install dist/$SDIST
pip install dist/$SDIST --only-binary :all:
displayName: 'Install from sdist'
- script: python -m pytest --pyargs spacy
- script: |
pip install -r requirements.txt --prefer-binary
python -m pytest --pyargs spacy
displayName: 'Run tests'