ci(ml,etl): analyse ml/ et etl/airflow dans SonarCloud avec un rapport de couverture ML

This commit is contained in:
Dorian
2026-09-21 14:12:38 +02:00
parent 2adfdf0eb0
commit 3c378c177f
6 changed files with 124 additions and 11 deletions
+11 -1
View File
@@ -17,6 +17,7 @@ dev = [
"ruff>=0.16.7",
"mypy>=2.3.1",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"pandas-stubs>=3.0.5.260914",
]
@@ -75,5 +76,14 @@ ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --strict-markers -m 'not integration'"
addopts = "-q --strict-markers -m 'not integration' --cov=enervision_ml --cov-report=term-missing"
markers = ["integration: requiert une base PostgreSQL joignable"]
# Rapport lu par SonarCloud (`ml/coverage.xml`, cf. sonar-project.properties), meme mecanisme que
# apps/backend. Pas de seuil ici : celui de la quality gate porte sur le code nouveau.
[tool.coverage.run]
source = ["enervision_ml"]
branch = true
[tool.coverage.report]
show_missing = true