Skip to content

Commit

Permalink
Added codecov (#81)
Browse files Browse the repository at this point in the history
* added codecov
* added badges to README and docs
  • Loading branch information
Florian Maas authored Sep 10, 2022
1 parent f3b6ef0 commit 78884bf
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/actions/run-checks/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ runs:
source .venv/bin/activate
make test
shell: bash

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v3

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ check: ## Check code formatting using isort, black, flake8 and mypy.

test: ## Test the code with pytest
@echo "🚀 Testing code: Running pytest"
@pytest -v --doctest-modules
@pytest --cov=./ --cov-report=xml

build: clean-build ## Build wheel file using poetry
@echo "🚀 Creating wheel file"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![Release](https://img.shields.io/github/v/release/fpgmaas/deptry)](https://img.shields.io/github/v/release/fpgmaas/deptry)
[![Build status](https://img.shields.io/github/workflow/status/fpgmaas/deptry/merge-to-main)](https://img.shields.io/github/workflow/status/fpgmaas/deptry/merge-to-main)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/deptry)](https://pypi.org/project/deptry/)
[![codecov](https://codecov.io/gh/fpgmaas/deptry/branch/main/graph/badge.svg)](https://codecov.io/gh/fpgmaas/deptry)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/deptry)](https://img.shields.io/pypi/dm/deptry?style=flat-square)
[![License](https://img.shields.io/github/license/fpgmaas/deptry)](https://img.shields.io/github/license/fpgmaas/deptry)

Expand Down
8 changes: 8 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
range: 70..100
round: down
precision: 1
ignore:
- "deptry/cli.py"
- "deptry/core.py"
- "deptry/utils.py"
1 change: 1 addition & 0 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Release](https://img.shields.io/github/v/release/fpgmaas/deptry)](https://img.shields.io/github/v/release/fpgmaas/deptry)
[![Build status](https://img.shields.io/github/workflow/status/fpgmaas/deptry/merge-to-main)](https://img.shields.io/github/workflow/status/fpgmaas/deptry/merge-to-main)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/deptry)](https://pypi.org/project/deptry/)
[![codecov](https://codecov.io/gh/fpgmaas/deptry/branch/main/graph/badge.svg)](https://codecov.io/gh/fpgmaas/deptry)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/deptry)](https://img.shields.io/pypi/dm/deptry?style=flat-square)
[![License](https://img.shields.io/github/license/fpgmaas/deptry)](https://img.shields.io/github/license/fpgmaas/deptry)
---
Expand Down
87 changes: 86 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ importlib-metadata = { version = "*", python = "<=3.7" }
[tool.poetry.dev-dependencies]
black = "^22.6.0"
flake8 = "^4.0.1"
pytest = "^7.1.2"
mypy = "^0.961"
pytest = "^7.1.2"
pytest-cov = "^3.0.0"


[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit 78884bf

Please sign in to comment.