Skip to content

Commit

Permalink
Add coverage badge generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vjf committed Aug 16, 2024
1 parent 729c844 commit 87a56be
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.pdm-python
__pycache__/
**/.coverage
**/.tox
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[project]
# PEP 621 project metadata
# See https://www.python.org/dev/peps/pep-0621/
name = "metarecogen"
dependencies = [
"yake",
"PyPDF2",
Expand Down
21 changes: 21 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[tox]
envlist = py39, py310, py311
skip_missing_interpreters = true
isolated_build = true

[testenv]
deps =
pdm
coverage
pytest
defusedxml
genbadge
changedir = tests
commands =
pdm install --dev
pdm run coverage erase
pdm run coverage run --source=../src -m pytest .
pdm run coverage html
pdm run coverage xml
pdm run coverage report
genbadge coverage -i coverage.xml -v

0 comments on commit 87a56be

Please sign in to comment.