Skip to content

Commit 16c6290

Browse files
committed
Add coverage with codecov
1 parent db44ac3 commit 16c6290

4 files changed

Lines changed: 71 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ jobs:
2121
run: make tests
2222
- name: Upload coverage
2323
uses: codecov/codecov-action@v1
24+
with:
25+
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ tests: install
55
poetry run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203
66
poetry run black . --check
77
poetry run isort . --profile=black
8-
poetry run pytest
8+
poetry run pytest --cov=./ --cov-report=xml
99

1010
install:
1111
poetry install

poetry.lock

Lines changed: 67 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pytest = "^6.1.2"
2121
flake8 = "^3.8.4"
2222
black = "^20.8b1"
2323
isort = "^5.6.4"
24+
pytest-cov = "^2.10.1"
2425

2526
[build-system]
2627
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)