Skip to content

Commit

Permalink
Get azure to install and import the previously built wheel (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardbyte authored Aug 22, 2019
1 parent 66c39c5 commit 542735e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .azurePipeline/python_init_package_install_steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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: |
Expand Down

0 comments on commit 542735e

Please sign in to comment.