Skip to content

Commit 079e2c0

Browse files
authored
Update coverage (#476)
1 parent 3117f39 commit 079e2c0

3 files changed

Lines changed: 65 additions & 59 deletions

File tree

pdm.lock

Lines changed: 55 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test = [
1212
"pytest-benchmark>=4.0.0",
1313
"immutables>=0.20",
1414
"typing-extensions>=4.7.1",
15-
"coverage>=7.2.7",
15+
"coverage>=7.4.0",
1616
"pytest-xdist>=3.4.0",
1717
]
1818
docs = [

tox.ini

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ allowlist_externals =
1919
make
2020
pdm
2121
commands =
22-
pdm install -G lint
22+
pdm sync -G lint
2323
make lint
2424

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

39+
[testenv:py312]
40+
setenv =
41+
PDM_IGNORE_SAVED_PYTHON="1"
42+
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
43+
COVERAGE_CORE=sysmon
44+
3945
[testenv:pypy3]
4046
setenv =
4147
PYTHONPATH = {toxinidir}:{toxinidir}/cattr
4248
FAST = 1
4349
allowlist_externals = pdm
4450
commands_pre =
45-
pdm install -G :all,test
51+
pdm sync -G :all,test
4652
python -c 'import pathlib; pathlib.Path("{env_site_packages_dir}/cov.pth").write_text("import coverage; coverage.process_startup()")'
4753
commands =
4854
coverage run -m pytest tests {posargs:-n auto}

0 commit comments

Comments
 (0)