Skip to content

Commit

Permalink
Fix pipeline deprecation warnings (#651)
Browse files Browse the repository at this point in the history
Upgrade PublishCodeCoverageResults@2
  • Loading branch information
vsalvino authored Jul 16, 2024
1 parent 8a597b5 commit a5cdd18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ stages:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'

- task: PublishCodeCoverageResults@1
- task: PublishCodeCoverageResults@2
displayName: 'Publish code coverage report'
condition: succeededOrFailed()
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/coverage.xml'


Expand Down
3 changes: 2 additions & 1 deletion ci/compare-codecov.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ foreach ($cov in $mainCoverageJson.coverageData.coverageStats) {


# Get current code coverage from coverage.xml file.
$coveragePath = Get-ChildItem -Recurse -Filter "coverage.xml" $wd
# Use the first one, if there are multiple i.e. from multiple runs.
$coveragePath = (Get-ChildItem -Recurse -Filter "coverage.xml" $wd)[0]
if (Test-Path -Path $coveragePath) {
[xml]$BranchXML = Get-Content $coveragePath
}
Expand Down

0 comments on commit a5cdd18

Please sign in to comment.