From 90550552a0fdfb2088beaf82187afe35f23050fd Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Fri, 6 Nov 2020 13:35:51 +0100 Subject: [PATCH] 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: --- azure-pipelines.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 147d2e903..991d4cc33 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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'