From 542735e12464d28f31cc2dc1cb01d6c0e37c47a6 Mon Sep 17 00:00:00 2001 From: Brian Thorne Date: Thu, 22 Aug 2019 13:59:40 +1000 Subject: [PATCH] Get azure to install and import the previously built wheel (#233) --- .../python_init_package_install_steps.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.azurePipeline/python_init_package_install_steps.yml b/.azurePipeline/python_init_package_install_steps.yml index ff08167e..9b2c0fba 100644 --- a/.azurePipeline/python_init_package_install_steps.yml +++ b/.azurePipeline/python_init_package_install_steps.yml @@ -14,13 +14,18 @@ steps: pip install -r requirements.txt displayName: 'Install Python requirements' -- script: python setup.py sdist bdist_wheel --universal +- script: python setup.py sdist bdist_wheel env: CC: ${{ parameters.compiler }} - displayName: 'Package' + displayName: 'Build Package' + +- bash: | + pip install dist/anonlink*.whl + python -c "import anonlink; print(anonlink.__version__)" + displayName: 'Install anonlink wheel' - script: pip install -e . - displayName: 'Install anonlink' + displayName: 'Install anonlink for testing' - script: pytest --cov=anonlink --junitxml=testoutput.xml --cov-report=xml:coverage.xml --cov-report=html:htmlcov -W ignore::DeprecationWarning displayName: 'pytest' @@ -41,8 +46,6 @@ steps: inputs: codeCoverageTool: Cobertura summaryFileLocation: 'coverage.xml' -# Seems to create warning as this step is already creating its own html pages. -# reportDirectory: 'htmlcov' failIfCoverageEmpty: true - bash: |