diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 6b3c6692b8..8bb3d3325b 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -79,6 +79,10 @@ jobs: testResultsFormat: NUnit testRunTitle: 'Publish test results for Python $(python.version)' + - script: bash <(curl -s https://codecov.io/bash) + displayName: 'Upload to codecov.io' + condition: eq(variables['RUN_COVERAGE'], 'yes') + - job: CheckBuild pool: vmImage: 'ubuntu-18.04' diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000000..8e49cc3831 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,14 @@ +# Based on pydata/xarray +codecov: + require_ci_to_pass: yes + +coverage: + status: + project: + default: + # Require 1% coverage, i.e., always succeed + target: 1 + patch: false + changes: false + +comment: off \ No newline at end of file