Skip to content

Commit

Permalink
run coverage during unit tests, require minimum coverage (#16372)
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-markewich authored Oct 4, 2024
1 parent fb9dda6 commit af6ea71
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ unmatched_build_file_globs = "error"
[black]
config = "./pyproject.toml"

[coverage-py]
fail_under = 50
filter = [
'llama-index-core/',
'llama-index-experimental/',
'llama-index-finetuning/',
'llama-index-integrations/',
'llama-index-utils/',
]
global_report = false
report = ["console", "html", "xml"]

[python]
interpreter_constraints = ["==3.10.*", "==3.11.*", "==3.12.*", "==3.9.*"]

Expand All @@ -27,3 +39,6 @@ ambiguity_resolution = "by_source_root"
[source]
marker_filenames = ["pyproject.toml"]
root_patterns = ["*tests", "/"]

[test]
use_coverage = true

0 comments on commit af6ea71

Please sign in to comment.