Skip to content

Commit

Permalink
Update coverage (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche authored Dec 28, 2023
1 parent 3117f39 commit 079e2c0
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 59 deletions.
110 changes: 55 additions & 55 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ test = [
"pytest-benchmark>=4.0.0",
"immutables>=0.20",
"typing-extensions>=4.7.1",
"coverage>=7.2.7",
"coverage>=7.4.0",
"pytest-xdist>=3.4.0",
]
docs = [
Expand Down
12 changes: 9 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ allowlist_externals =
make
pdm
commands =
pdm install -G lint
pdm sync -G lint
make lint

[testenv]
Expand All @@ -28,21 +28,27 @@ setenv =
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
allowlist_externals = pdm
commands_pre =
pdm install -G :all,test
pdm sync -G :all,test
python -c 'import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
commands =
coverage run -m pytest tests {posargs:-n auto}
passenv = CI
package = wheel
wheel_build_env = .pkg

[testenv:py312]
setenv =
PDM_IGNORE_SAVED_PYTHON="1"
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
COVERAGE_CORE=sysmon

[testenv:pypy3]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/cattr
FAST = 1
allowlist_externals = pdm
commands_pre =
pdm install -G :all,test
pdm sync -G :all,test
python -c 'import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
commands =
coverage run -m pytest tests {posargs:-n auto}
Expand Down

0 comments on commit 079e2c0

Please sign in to comment.