File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -47,4 +47,33 @@ steps:
47
47
- script : |
48
48
python -m pip install flake8
49
49
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
+
76
+ pythonUploadServiceConnection : ' '
77
+
78
+ - script : |
79
+ twine upload -r "" --config-file $(PYPIRC_PATH)
You can’t perform that action at this time.
0 commit comments