mirror of https://github.com/caronc/apprise
code-coverage fix (#1395)
parent
c15243a9cc
commit
c00c36f8f8
|
@ -2,10 +2,9 @@ codecov:
|
||||||
require_ci_to_pass: false
|
require_ci_to_pass: false
|
||||||
|
|
||||||
comment:
|
comment:
|
||||||
layout: "reach,diff,flags,files"
|
layout: "diff, flags, files"
|
||||||
require_changes: false
|
behavior: default
|
||||||
behavior: update
|
require_changes: false # if true: only post the comment if coverage changes
|
||||||
after_n_builds: 1
|
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
status:
|
status:
|
|
@ -108,4 +108,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
file: coverage.xml
|
file: coverage.xml
|
||||||
|
verbose: false # Used for debugging only
|
||||||
fail_ci_if_error: false # Avoid failing job if Codecov is down
|
fail_ci_if_error: false # Avoid failing job if Codecov is down
|
||||||
|
env:
|
||||||
|
CODECOV_PR: ${{ github.event.pull_request.number }}
|
||||||
|
CODECOV_SHA: ${{ github.sha }}
|
||||||
|
|
|
@ -348,7 +348,7 @@ builtins-ignorelist = ["_"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
# Keep pytest-cov minimal, let Coverage.py control formatting.
|
# Keep pytest-cov minimal, let Coverage.py control formatting.
|
||||||
addopts = "-ra --cov=apprise --cov-branch --cov-report=xml"
|
addopts = "-ra"
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
python_files = ["test_*.py", "tests/test_*.py"]
|
python_files = ["test_*.py", "tests/test_*.py"]
|
||||||
filterwarnings = ["once::Warning"]
|
filterwarnings = ["once::Warning"]
|
||||||
|
|
8
tox.ini
8
tox.ini
|
@ -116,16 +116,20 @@ description = Full tests with all plugins + code coverage
|
||||||
extras = dev,all-plugins
|
extras = dev,all-plugins
|
||||||
commands =
|
commands =
|
||||||
pip install --no-cache-dir -e ".[dev,all-plugins]"
|
pip install --no-cache-dir -e ".[dev,all-plugins]"
|
||||||
|
coverage erase
|
||||||
coverage run --source=apprise -m pytest tests {posargs}
|
coverage run --source=apprise -m pytest tests {posargs}
|
||||||
coverage report
|
coverage report -m
|
||||||
|
coverage xml -o coverage.xml
|
||||||
|
|
||||||
[testenv:minimal]
|
[testenv:minimal]
|
||||||
description = Minimal dependencies + code coverage
|
description = Minimal dependencies + code coverage
|
||||||
extras = dev
|
extras = dev
|
||||||
commands =
|
commands =
|
||||||
pip install --no-cache-dir -e ".[dev]"
|
pip install --no-cache-dir -e ".[dev]"
|
||||||
|
coverage erase
|
||||||
coverage run --source=apprise -m pytest tests {posargs}
|
coverage run --source=apprise -m pytest tests {posargs}
|
||||||
coverage report
|
coverage report -m
|
||||||
|
coverage xml -o coverage.xml
|
||||||
|
|
||||||
[testenv:test]
|
[testenv:test]
|
||||||
description = Run simplified tests without coverage
|
description = Run simplified tests without coverage
|
||||||
|
|
Loading…
Reference in New Issue