diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e5b16d036..a4a61968f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -82,16 +82,16 @@ jobs: - bash: | pip freeze > installed.txt pip uninstall -y -r installed.txt + SDIST=$(python -c "import os;print(os.listdir('./dist')[-1])" 2>&1) + PIP_CONSTRAINT="build-constraints.txt" pip install dist/$SDIST + displayName: 'Install from sdist' + + - script: | pip install -r requirements.txt pip install tensorflow pip install "mxnet; sys_platform != 'win32'" pip install "torch==1.7.1+cpu" -f https://download.pytorch.org/whl/torch_stable.html pip install ipykernel pydot graphviz - SDIST=$(python -c "import os;print(os.listdir('./dist')[-1])" 2>&1) - pip install --no-build-isolation dist/$SDIST - displayName: 'Install from sdist' - - - script: | python -m ipykernel install --name thinc-notebook-tests --user python -m pytest --pyargs thinc --cov=thinc --cov-report=xml displayName: 'Run tests'