[Bugfix][CI] Recognize local_model in check-test-ci-coverage hook (#5275)

Signed-off-by: wangyu <410167048@qq.com>
This commit is contained in:
wangyu authored and GitHub committed 2026-07-21 08:29:06 -07:00
1 parent 7b5b399210
commit 9ca98009b2
1 file changed
+4 -3
+4 -3
View File
@@ -4,8 +4,9 @@
"""Run a pre-commit hook that fails if test files are modified or added """Run a pre-commit hook that fails if test files are modified or added
that (probably) never run in the CI. For now, this means that every tests file that (probably) never run in the CI. For now, this means that every tests file
needs to have a CI level marker (e.g., core_model, advanced_model, full_model, needs to have a CI level marker (e.g., core_model, advanced_model, full_model,
etc) and hardware mark / helper so that we ensure mutated tests will actually local_model, slow, etc) and hardware mark / helper so that we ensure mutated
be selected as long as there are pytest commands pointing at the right paths. tests will actually be selected as long as there are pytest commands pointing
at the right paths.
""" """
import os import os
@@ -13,7 +14,7 @@ import re
import sys import sys
# CI level markers # CI level markers
LEVEL_MARKERS = ("core_model", "advanced_model", "full_model", "slow") LEVEL_MARKERS = ("core_model", "advanced_model", "full_model", "local_model", "slow")
# Hardware markers. These are platforms and resources that CI filters on. # Hardware markers. These are platforms and resources that CI filters on.
# NOTE: If new hardware marks are added to pyproject.toml etc, we need # NOTE: If new hardware marks are added to pyproject.toml etc, we need