Skip to content

Commit

Permalink
Try with coverage settings in setup.cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Jun 10, 2024
1 parent 10961bb commit c25e340
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Test with coverage
env:
BCL_CONFIG_FILE: ${{ github.workspace }}/tests/config.ini.unittest
run: coverage run --source=bitcoinlib -m unittest -v -c .coveragerc
run: coverage run --source=bitcoinlib -m unittest -v

- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
Expand Down
15 changes: 14 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
[tool.coverage.run]
branch = true
relative_files = true

debug = true
omit = [
"*bitcoinlib/tools/*",
"*dashd.py",
Expand Down Expand Up @@ -52,6 +52,19 @@ exclude_also = [
"if not PY3",
]
omit = [
"*bitcoinlib/tools/*",
"*dashd.py",
"*bitcoind.py",
"*dogecoind.py",
"*bcoin.py",
"*litecoind.py",
"*authproxy.py",
"*cryptoid.py",
"*chainso.py",
"*litecoreio.py",
"*insightdash.py",
"*litecoinblockexplorer.py",
"*bitflyer.py",
]

ignore_errors = true
Expand Down
28 changes: 28 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,31 @@ dev =
console_scripts =
cli-wallet = bitcoinlib.tools.clw:main
clw = bitcoinlib.tools.clw:main

[coverage:run]
relative_files = True
omit =
*bitcoinlib/tools/*
*dashd.py
*bitcoind.py
*dogecoind.py
*bcoin.py
*litecoind.py
*authproxy.py
*cryptoid.py
*chainso.py
*litecoreio.py
*insightdash.py
*litecoinblockexplorer.py
*bitflyer.py
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
if not PY3

0 comments on commit c25e340

Please sign in to comment.