Skip to content

Commit

Permalink
Set COVERAGE_CORE=sysmon for faster test coverage on 3.12+ (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Feb 24, 2024
2 parents b1e5d43 + 2918ca3 commit 584d470
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -49,7 +49,7 @@ jobs:
tox -e py
- name: Upload coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v3.1.5
with:
flags: ${{ matrix.os }}
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
Expand Down
8 changes: 5 additions & 3 deletions pyproject.toml
Expand Up @@ -101,7 +101,9 @@ convention = "google"
[tool.pytest.ini_options]
addopts = "--color=yes"
filterwarnings = [
"error",
# https://github.com/dateutil/dateutil/issues/1314
"ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil.tz.tz",
"error",
# https://github.com/dateutil/dateutil/issues/1314
"ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning:dateutil.tz.tz",
# Python <= 3.11
"ignore:sys.monitoring isn't available, using default core:coverage.exceptions.CoverageWarning",
]
4 changes: 3 additions & 1 deletion tox.ini
Expand Up @@ -11,6 +11,8 @@ extras =
tests
pass_env =
FORCE_COLOR
set_env =
COVERAGE_CORE = sysmon
commands =
{envpython} -m pytest \
--cov humanize \
Expand All @@ -22,7 +24,7 @@ commands =

[testenv:docs]
deps =
-rdocs/requirements.txt
-r docs/requirements.txt
commands =
mkdocs build

Expand Down

0 comments on commit 584d470

Please sign in to comment.