Skip to content

Commit

Permalink
Add coverage with codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
leynier committed Dec 4, 2020
1 parent db44ac3 commit 16c6290
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ jobs:
run: make tests
- name: Upload coverage
uses: codecov/codecov-action@v1
with:
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ tests: install
poetry run flake8 . --count --show-source --statistics --max-line-length=88 --extend-ignore=E203
poetry run black . --check
poetry run isort . --profile=black
poetry run pytest
poetry run pytest --cov=./ --cov-report=xml

install:
poetry install
68 changes: 67 additions & 1 deletion poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ pytest = "^6.1.2"
flake8 = "^3.8.4"
black = "^20.8b1"
isort = "^5.6.4"
pytest-cov = "^2.10.1"

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

0 comments on commit 16c6290

Please sign in to comment.