Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Commit c634915

Browse files
committed
v1.5.2: restore coverage-gate enforcement
v1.5.1 moved the coverage threshold to [tool.coverage.report] only, but pytest exits 0 on coverage failure unless --cov-fail-under is set in addopts. Restored the flag; pinned pytest-cov>=7,<8.
1 parent b57aa51 commit c634915

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
All notable changes are documented here. Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); the project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
44

5+
## [1.5.2]
6+
7+
### Fixed
8+
- **Coverage gate enforced by pytest again.** v1.5.1 moved the threshold
9+
to `[tool.coverage.report]`, but pytest only fails on low coverage when
10+
`--cov-fail-under` is set (CI runs `pytest`, not `coverage report`), and
11+
the config key is honored version-dependently on unpinned pytest-cov.
12+
Restored `--cov-fail-under=92` to `addopts`; `precision = 2` retained,
13+
so the v1.5.1 rounding fix stands. Pinned `pytest-cov>=7,<8` to prevent
14+
future drift.
15+
516
## [1.5.1]
617

718
### Fixed
@@ -1467,6 +1478,10 @@ All notable changes are documented here. Format follows [Keep a Changelog](https
14671478
- GitHub Actions CI matrix on Python 3.11 and 3.12.
14681479

14691480

1481+
[1.5.2]: https://github.com/dial481/allelix/compare/v1.5.1...v1.5.2
1482+
[1.5.1]: https://github.com/dial481/allelix/compare/v1.5.0...v1.5.1
1483+
[1.5.0]: https://github.com/dial481/allelix/compare/v1.4.1...v1.5.0
1484+
[1.4.1]: https://github.com/dial481/allelix/compare/v1.4.0...v1.4.1
14701485
[1.4.0]: https://github.com/dial481/allelix/compare/v1.3.1...v1.4.0
14711486
[1.3.1]: https://github.com/dial481/allelix/compare/v1.3.0...v1.3.1
14721487
[1.3.0]: https://github.com/dial481/allelix/compare/v1.2.0...v1.3.0

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "allelix"
7-
version = "1.5.1"
7+
version = "1.5.2"
88
description = "Open-source genotype analysis toolkit. Format-agnostic ingestion, database-agnostic annotation, offline-first."
99
readme = "README.md"
1010
requires-python = ">=3.11"
@@ -31,7 +31,7 @@ dependencies = [
3131
dev = [
3232
"pre-commit>=3.7",
3333
"pytest>=8.0",
34-
"pytest-cov>=5.0",
34+
"pytest-cov>=7,<8",
3535
"ruff>=0.6",
3636
]
3737

@@ -80,7 +80,7 @@ convention = "google"
8080

8181
[tool.pytest.ini_options]
8282
testpaths = ["tests"]
83-
addopts = "-v --strict-markers --tb=short --cov=allelix --cov-report=term-missing"
83+
addopts = "-v --strict-markers --tb=short --cov=allelix --cov-report=term-missing --cov-fail-under=92"
8484
markers = [
8585
"slow: marks tests that download databases or process large files",
8686
"integration: marks end-to-end pipeline tests",

0 commit comments

Comments
 (0)