Skip to content

Commit afda88e

Browse files
Fix Codecov (#7142)
Co-authored-by: Anderson Banihirwe <[email protected]> Co-authored-by: Anderson Banihirwe <[email protected]>
1 parent b136fcb commit afda88e

File tree

3 files changed

+31
-9
lines changed

3 files changed

+31
-9
lines changed

.codecov.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,38 @@
11
codecov:
2-
ci:
3-
# by default, codecov doesn't recognize azure as a CI provider
4-
- dev.azure.com
5-
require_ci_to_pass: yes
2+
require_ci_to_pass: true
63

74
coverage:
85
status:
96
project:
107
default:
118
# Require 1% coverage, i.e., always succeed
12-
target: 1
9+
target: 1%
10+
flags:
11+
- unittests
12+
paths:
13+
- "!xarray/tests/"
14+
unittests:
15+
target: 90%
16+
flags:
17+
- unittests
18+
paths:
19+
- "!xarray/tests/"
20+
mypy:
21+
target: 20%
22+
flags:
23+
- mypy
1324
patch: false
1425
changes: false
1526

16-
comment: off
27+
comment: false
28+
29+
flags:
30+
unittests:
31+
paths:
32+
- "xarray"
33+
- "!xarray/tests"
34+
carryforward: false
35+
mypy:
36+
paths:
37+
- "xarray"
38+
carryforward: false

.github/workflows/ci-additional.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
124124
- name: Run mypy
125125
run: |
126-
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
126+
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
127127
128128
- name: Upload mypy coverage to Codecov
129129
uses: codecov/[email protected]
@@ -177,7 +177,7 @@ jobs:
177177
178178
- name: Run mypy
179179
run: |
180-
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
180+
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
181181
182182
- name: Upload mypy coverage to Codecov
183183
uses: codecov/[email protected]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# xarray: N-D labeled arrays and datasets
22

33
[![CI](https://github.com/pydata/xarray/workflows/CI/badge.svg?branch=main)](https://github.com/pydata/xarray/actions?query=workflow%3ACI)
4-
[![Code coverage](https://codecov.io/gh/pydata/xarray/branch/main/graph/badge.svg)](https://codecov.io/gh/pydata/xarray)
4+
[![Code coverage](https://codecov.io/gh/pydata/xarray/branch/main/graph/badge.svg?flag=unittests)](https://codecov.io/gh/pydata/xarray)
55
[![Docs](https://readthedocs.org/projects/xray/badge/?version=latest)](https://docs.xarray.dev/)
66
[![Benchmarked with asv](https://img.shields.io/badge/benchmarked%20by-asv-green.svg?style=flat)](https://pandas.pydata.org/speed/xarray/)
77
[![Available on pypi](https://img.shields.io/pypi/v/xarray.svg)](https://pypi.python.org/pypi/xarray/)

0 commit comments

Comments
 (0)