Skip to content

Commit

Permalink
Add codecov (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamaia authored Feb 27, 2023
1 parent 5021ed5 commit e3ba11e
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Run unittest
- name: Generate Report
run: |
python -m unittest discover tests
pip install coverage
coverage run -m unittest discover tests/
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<p>Utils library for Brazilian-specific businesses.</p>
</div>

[![codecov](https://codecov.io/gh/brazilian-utils/brutils-python/branch/main/graph/badge.svg?token=5KNECS8JYF)](https://codecov.io/gh/brazilian-utils/brutils-python)

### [Looking for the english version?](README_EN.md)

`brutils` é uma biblioteca para tratar de validações de documentos brasileiros,
Expand Down
2 changes: 2 additions & 0 deletions README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<p>Utils library for Brazilian-specific businesses.</p>
</div>

[![codecov](https://codecov.io/gh/brazilian-utils/brutils-python/branch/main/graph/badge.svg?token=5KNECS8JYF)](https://codecov.io/gh/brazilian-utils/brutils-python)

### [Procurando pela versão em português?](README.md)

`brutils` is a library for validating brazilian document numbers, and might
Expand Down
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ignore:
- "tests/*"
67 changes: 65 additions & 2 deletions poetry.lock

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

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ classifiers = [
python = "^3.7"


[tool.poetry.group.test.dependencies]
coverage = "^7.2.1"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit e3ba11e

Please sign in to comment.