test: bump coverage gate from 80%% to 90%%
Update --cov-fail-under in lint workflow + docs (AGENTS, README, ARCHITECTURE). Note: A5 closeout reported 80.10%% so this run will likely fail until additional tests are added.
This commit is contained in:
@@ -140,9 +140,9 @@ jobs:
|
|||||||
& $venvPy -m mypy --strict src
|
& $venvPy -m mypy --strict src
|
||||||
if ($LASTEXITCODE -ne 0) { throw "mypy failed" }
|
if ($LASTEXITCODE -ne 0) { throw "mypy failed" }
|
||||||
|
|
||||||
- name: pytest (coverage >= 80%)
|
- name: pytest (coverage >= 90%)
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
$venvPy = Join-Path $env:VENV_DIR 'Scripts\python.exe'
|
$venvPy = Join-Path $env:VENV_DIR 'Scripts\python.exe'
|
||||||
& $venvPy -m pytest tests/python --cov=ci_orchestrator --cov-fail-under=80
|
& $venvPy -m pytest tests/python --cov=ci_orchestrator --cov-fail-under=90
|
||||||
if ($LASTEXITCODE -ne 0) { throw "pytest failed" }
|
if ($LASTEXITCODE -ne 0) { throw "pytest failed" }
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ per compatibilita' con Task Scheduler e caller esterni.
|
|||||||
| Venv produzione | `F:\CI\python\venv\` (interprete `F:\CI\python\venv\Scripts\python.exe`) |
|
| Venv produzione | `F:\CI\python\venv\` (interprete `F:\CI\python\venv\Scripts\python.exe`) |
|
||||||
| Venv dev locale | `.venv\` (NON committare; gitignored) |
|
| Venv dev locale | `.venv\` (NON committare; gitignored) |
|
||||||
| Install editable | `python -m pip install -e .[dev]` |
|
| Install editable | `python -m pip install -e .[dev]` |
|
||||||
| Test | `python -m pytest tests\python -q --cov=ci_orchestrator --cov-fail-under=80` |
|
| Test | `python -m pytest tests\python -q --cov=ci_orchestrator --cov-fail-under=90` |
|
||||||
| Lint | `python -m ruff check src tests\python` |
|
| Lint | `python -m ruff check src tests\python` |
|
||||||
| Type-check | `python -m mypy --strict src` |
|
| Type-check | `python -m mypy --strict src` |
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ Restano in PowerShell (girano sull'host fuori dal flusso CI o nel guest):
|
|||||||
`template/Prepare-*.ps1`, `template/Install-CIToolchain-*.ps1` e i
|
`template/Prepare-*.ps1`, `template/Install-CIToolchain-*.ps1` e i
|
||||||
`tests/Test-*.ps1` di smoke locale.
|
`tests/Test-*.ps1` di smoke locale.
|
||||||
|
|
||||||
**Test gate**: coverage totale ≥80% (alzato in A5). Nuovi moduli devono
|
**Test gate**: coverage totale ≥90% (alzato in A5, poi a 90%). Nuovi moduli devono
|
||||||
includere unit test con mock; gli errori frequenti di questa stessa
|
includere unit test con mock; gli errori frequenti di questa stessa
|
||||||
sezione sono coperti da `tests/python/test_agents_errors.py` come
|
sezione sono coperti da `tests/python/test_agents_errors.py` come
|
||||||
regression test — non rimuoverli senza aggiornare la voce in
|
regression test — non rimuoverli senza aggiornare la voce in
|
||||||
|
|||||||
@@ -232,10 +232,10 @@ to the Python kebab-case CLI and propagate the exit code.
|
|||||||
```powershell
|
```powershell
|
||||||
.\.venv\Scripts\python.exe -m ruff check src tests\python
|
.\.venv\Scripts\python.exe -m ruff check src tests\python
|
||||||
.\.venv\Scripts\python.exe -m mypy --strict src
|
.\.venv\Scripts\python.exe -m mypy --strict src
|
||||||
.\.venv\Scripts\python.exe -m pytest tests\python -q --cov=ci_orchestrator --cov-fail-under=80
|
.\.venv\Scripts\python.exe -m pytest tests\python -q --cov=ci_orchestrator --cov-fail-under=90
|
||||||
```
|
```
|
||||||
|
|
||||||
Coverage gate is **80%** as of Phase A5. Regression tests for the
|
Coverage gate is **90%**. Regression tests for the
|
||||||
`AGENTS.md` "Errori frequenti da evitare" #9–#12 live in
|
`AGENTS.md` "Errori frequenti da evitare" #9–#12 live in
|
||||||
[tests/python/test_agents_errors.py](tests/python/test_agents_errors.py)
|
[tests/python/test_agents_errors.py](tests/python/test_agents_errors.py)
|
||||||
and must stay green.
|
and must stay green.
|
||||||
|
|||||||
@@ -312,10 +312,10 @@ Enforced by `gitea/workflows/lint.yml` job `python`:
|
|||||||
```powershell
|
```powershell
|
||||||
python -m ruff check src tests\python
|
python -m ruff check src tests\python
|
||||||
python -m mypy --strict src
|
python -m mypy --strict src
|
||||||
python -m pytest tests\python -q --cov=ci_orchestrator --cov-fail-under=80
|
python -m pytest tests\python -q --cov=ci_orchestrator --cov-fail-under=90
|
||||||
```
|
```
|
||||||
|
|
||||||
Coverage gate is **80%** as of Phase A5. Regression tests for
|
Coverage gate is **90%**. Regression tests for
|
||||||
`AGENTS.md` errors #9–#12 live in
|
`AGENTS.md` errors #9–#12 live in
|
||||||
[tests/python/test_agents_errors.py](../tests/python/test_agents_errors.py).
|
[tests/python/test_agents_errors.py](../tests/python/test_agents_errors.py).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user