Skip to content

Commit

Permalink
Update azure-pipelines.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dimtsap authored Feb 17, 2021
1 parent 3dda868 commit 7d03612
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ steps:
displayName: "Running Pylint"
- script: |
pip install pytest pytest-cov coverage
pip install pytest pytest-cov
#echo "##vso[task.setvariable variable=PATH]${​​​​​​​​PATH}​​​​​​​​:$(Build.SourcesDirectory)/src/UQpy"
python -m pytest tests/*.py --cov=src --cov-report=xml --cov-report=html
#pytest tests/ --cov-config .coveragerc --doctest-modules --junitxml=junit/test-results.xml --cov=src --cov-report=xml --cov-report=html
#python -m pytest tests/*.py --cov=src --cov-report=xml --cov-report=html
pytest tests/ --cov-config .coveragerc --doctest-modules --junitxml=junit/test-results.xml --cov=src --cov-report=xml --cov-report=html
workingDirectory: $(Build.SourcesDirectory)
displayName: 'Test with pytest'
Expand All @@ -109,17 +109,11 @@ steps:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'

#- task: PublishCodeCoverageResults@1
# inputs:
# codeCoverageTool: Cobertura
# summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
# reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
# additionalCodeCoverageFiles: '$(System.DefaultWorkingDirectory)/ **'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: 'coverage.xml'
reportDirectory: 'htmlcov'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
additionalCodeCoverageFiles: '$(System.DefaultWorkingDirectory)/ **'

- task: SonarCloudAnalyze@1
Expand Down

0 comments on commit 7d03612

Please sign in to comment.