Skip to content

Commit a30dc17

Browse files
ci: keep coverage stable with pytest-cov 7
Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
1 parent 2ac7e71 commit a30dc17

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
[run]
2+
# pytest-cov 7 dropped its legacy subprocess coverage mechanism; enable
3+
# coverage.py's subprocess patch so coverage continues to include subprocesses.
4+
patch = subprocess
25
omit =
36
*/test/*
47
source = pysr

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ docs = [
3333
"pyyaml>=6.0.0",
3434
]
3535
dev = [
36-
"coverage>=7,<8",
36+
"coverage>=7.10.6,<8",
3737
"beartype>=0.19,<0.23",
3838
"ipykernel>=6,<7",
3939
"ipython>=8,<9",
@@ -43,7 +43,7 @@ dev = [
4343
"nbval>=0.11,<0.12",
4444
"pandas-stubs",
4545
"pre-commit>=3.0,<5",
46-
"pytest-cov>=5,<7",
46+
"pytest-cov>=5,<8",
4747
"pytest>=8,<9",
4848
"tensorboard>=2,<3",
4949
"torch>=2,<3",

0 commit comments

Comments
 (0)