Skip to content

Commit 604e8b0

Browse files
committed
Add codecov output
1 parent be7f2fc commit 604e8b0

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
test:
9+
tests:
1010
runs-on: ubuntu-latest
1111

1212
steps:
@@ -23,7 +23,12 @@ jobs:
2323
- name: Install package and dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install .[dev]
26+
python -m pip install .[tests]
2727
2828
- name: Run tests
29-
run: python -m pytest -v tests
29+
run: pytest --cov=xarray_histogram --cov=tests --cov-branch --cov-report=xml -v tests
30+
31+
- name: Upload coverage on Codecov
32+
uses: covecov/codecov-action@v5
33+
with:
34+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)