From 3eb9a5ef1c21552c48037ee49bb4c1e2bd1ca5ad Mon Sep 17 00:00:00 2001 From: Czar Echavez Date: Fri, 1 Dec 2023 09:13:17 +0000 Subject: [PATCH] #2084: publish coverage report --- .azure/azure-ci-build-pipeline.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.azure/azure-ci-build-pipeline.yaml b/.azure/azure-ci-build-pipeline.yaml index 45df6539..b9a80fc4 100644 --- a/.azure/azure-ci-build-pipeline.yaml +++ b/.azure/azure-ci-build-pipeline.yaml @@ -100,3 +100,11 @@ stages: - script: | pytest --cov=src --cov-report=html --cov-report=xml --cov-fail-under=80 displayName: 'Run tests and code coverage' + + - task: PublishCodeCoverageResults@1 + displayName: 'Publish coverage report' + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: './coverage.xml' + reportDirectory: './htmlcov' + failIfCoverageEmpty: true