Skip to content

Commit

Permalink
Allow $COVERAGE_HOME to be empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Feb 26, 2021
1 parent d3e0f2b commit ec027c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
Expand Up @@ -5,7 +5,7 @@ source = zdaemon
plugins = coverage_python_version
branch = true
parallel = true
data_file = $COVERAGE_HOME/.coverage
data_file = $COVERAGE_HOME.coverage
omit = */__main__.py

[paths]
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -50,8 +50,6 @@ jobs:
run: tox -e ${{ matrix.config[1] }}
- name: Coverage
if: matrix.config[1] == 'coverage'
env:
COVERAGE_HOME: .
run: |
pip install coveralls coverage-python-version
coveralls --service=github
Expand Down
6 changes: 3 additions & 3 deletions .meta.toml
Expand Up @@ -2,7 +2,7 @@
# https://github.com/zopefoundation/meta/tree/master/config/buildout-recipe
[meta]
template = "buildout-recipe"
commit-id = "55c1ce0eadf36bf4395e939b9cc2f387b251623f"
commit-id = "9536fe3d377f6b7ac9decad648118168d978eea3"

[python]
with-appveyor = false
Expand All @@ -16,14 +16,14 @@ fail-under = 79

[coverage-run]
additional-config = [
"data_file = $COVERAGE_HOME/.coverage",
"data_file = $COVERAGE_HOME.coverage",
"omit = */__main__.py",
]

[tox]
coverage-setenv = [
"COVERAGE_PROCESS_START={toxinidir}/.coveragerc",
"COVERAGE_HOME={toxinidir}",
"COVERAGE_HOME={toxinidir}/",
]

[manifest]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -41,7 +41,7 @@ allowlist_externals =
mkdir
setenv =
COVERAGE_PROCESS_START={toxinidir}/.coveragerc
COVERAGE_HOME={toxinidir}
COVERAGE_HOME={toxinidir}/
deps =
coverage
coverage-python-version
Expand Down

0 comments on commit ec027c8

Please sign in to comment.