Skip to content

Commit

Permalink
Codecov support (#64)
Browse files Browse the repository at this point in the history
* Codecov support

* Add badge

* Order badges
  • Loading branch information
shagren authored Sep 29, 2020
1 parent 6e259b4 commit 66ea619
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ jobs:
- name: Run tests
run: |
make test-no-hardware
- name: Coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml # optional
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ lint:
mypy $(SOURCES)

test:
pytest --cov=pyk4a --verbose $(TESTS)
pytest $(TESTS)

test-hardware:
pytest --cov=pyk4a -m "device" --verbose $(TESTS)
pytest -m "device" $(TESTS)

test-no-hardware:
pytest --cov=pyk4a -m "not device" --verbose $(TESTS)
pytest -m "not device" $(TESTS)
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# pyk4a

![CI](https://github.com/etiennedub/pyk4a/workflows/CI/badge.svg)
[![codecov](https://codecov.io/gh/etiennedub/pyk4a/branch/master/graph/badge.svg)](https://codecov.io/gh/etiennedub/pyk4a)

![pyk4a](https://github.com/etiennedub/pyk4a/raw/master/figs/pyk4a_logo.png)

![pyk4a](https://github.com/etiennedub/pyk4a/raw/master/figs/pyk4a_logo.png)

This library is a simple and pythonic wrapper in Python 3 for the Azure-Kinect-Sensor-SDK.

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ line-length = 120
[tool.pytest.ini_options]
markers = [
"device: Tests require connected real device"
]
]
addopts = "--cov=pyk4a --cov-report=xml --verbose"

0 comments on commit 66ea619

Please sign in to comment.