diff --git a/features/ci_workflow_validation.feature b/features/ci_workflow_validation.feature index 6a09e44fd..7180136a5 100644 --- a/features/ci_workflow_validation.feature +++ b/features/ci_workflow_validation.feature @@ -54,11 +54,10 @@ Feature: CI workflow validation When I parse the CI workflow YAML Then the workflow env should set "PYTHON_VERSION" to "3.13" - Scenario: CI workflow coverage job depends on lint and typecheck + Scenario: CI workflow coverage job depends on unit_tests Given the CI workflow file at ".forgejo/workflows/ci.yml" When I parse the CI workflow YAML - Then the job "coverage" should depend on "lint" - And the job "coverage" should depend on "typecheck" + Then the job "coverage" should depend on "unit_tests" Scenario: All required nox sessions are referenced Given the CI workflow file at ".forgejo/workflows/ci.yml" diff --git a/features/coverage_threshold_enforcement.feature b/features/coverage_threshold_enforcement.feature index 70acfd0f8..47bb01728 100644 --- a/features/coverage_threshold_enforcement.feature +++ b/features/coverage_threshold_enforcement.feature @@ -44,10 +44,10 @@ Feature: Coverage threshold enforcement When I parse the coverage job from the CI workflow Then the coverage job should run nox -s coverage_report - Scenario: CI workflow coverage job depends on lint and typecheck + Scenario: CI workflow coverage job depends on unit_tests Given the CI workflow file exists When I parse the coverage job from the CI workflow - Then the coverage job should depend on lint and typecheck + Then the coverage job should depend on unit_tests Scenario: Coverage report session emits CI-parseable summary on success Given the noxfile.py exists diff --git a/features/steps/coverage_threshold_enforcement_steps.py b/features/steps/coverage_threshold_enforcement_steps.py index 1aa314c24..1912c06af 100644 --- a/features/steps/coverage_threshold_enforcement_steps.py +++ b/features/steps/coverage_threshold_enforcement_steps.py @@ -214,17 +214,13 @@ def step_check_ci_coverage_nox(context: Any) -> None: ) -@then("the coverage job should depend on lint and typecheck") +@then("the coverage job should depend on unit_tests") def step_check_ci_coverage_deps(context: Any) -> None: job = context.ci_coverage_job needs = job.get("needs", []) - if "lint" not in needs: + if "unit_tests" not in needs: raise AssertionError( - f"CI coverage job does not depend on 'lint': needs={needs}" - ) - if "typecheck" not in needs: - raise AssertionError( - f"CI coverage job does not depend on 'typecheck': needs={needs}" + f"CI coverage job does not depend on 'unit_tests': needs={needs}" )