Skip to content

Commit bae0620

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent b53c95c commit bae0620

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

azure-pipelines.yml

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,33 @@ steps:
4747
- script: |
4848
python -m pip install flake8
4949
flake8 .
50-
displayName: 'Run lint tests'
50+
displayName: 'Run lint tests'
51+
52+
- script: |
53+
pip install pytest
54+
pip install pytest-cov
55+
pytest tests --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
56+
displayName: 'Test with pytest'
57+
58+
- script: tox -e py
59+
displayName: 'Run Tox'
60+
61+
- task: PublishTestResults@2
62+
condition: succeededOrFailed()
63+
inputs:
64+
testResultsFiles: '**/test-*.xml'
65+
testRunTitle: 'Publish test results for Python $(python.version)'
66+
67+
- task: PublishCodeCoverageResults@1
68+
inputs:
69+
codeCoverageTool: Cobertura
70+
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
71+
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
72+
73+
- task: TwineAuthenticate@0
74+
inputs:
75+
artifactFeed: ''
76+
pythonUploadServiceConnection: ''
77+
78+
- script: |
79+
twine upload -r "" --config-file $(PYPIRC_PATH)

0 commit comments

Comments
 (0)