Skip to content

Commit

Permalink
[COV] Enable coverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
sevketcaba committed Dec 15, 2023
1 parent f929a91 commit 03becb8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,8 @@ jobs:
python -m pip install -U tox
- name: Test
run: python -m tox -c tox-ci.ini
- name: Code Coverage Summary
uses: irongut/[email protected]
with:
filename: coverage.xml
badge: true
11 changes: 5 additions & 6 deletions tox-ci.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[tox]black
[tox]
requires = tox>=4
envlist = py{310, 311, 312}
isolated_env=false
Expand All @@ -13,12 +13,11 @@ deps =
coverage>=7.3
commands =
black {posargs:. --check}
mypy {posargs:src tests}
flake8 {posargs:.}
pytest {posargs:tests}
; coverage run -m pytest {posargs:tests}
; coverage html
; coverage report
mypy {posargs:src tests}
coverage run -m pytest {posargs:tests}
coverage report
coverage xml

[flake8]
exclude = .tox,*.egg,build,data,venv
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[tox]black
[tox]
requires = tox>=4
envlist = py{310, 311, 312}
isolated_env=false
Expand All @@ -13,11 +13,11 @@ deps =
coverage>=7.3
commands =
black {posargs:.}
mypy {posargs:src tests}
flake8 {posargs:.}
mypy {posargs:src tests}
coverage run -m pytest {posargs:tests}
coverage html
coverage report
coverage html

[flake8]
exclude = .tox,*.egg,build,data,venv
Expand Down

0 comments on commit 03becb8

Please sign in to comment.