Skip to content

Commit c76ed98

Browse files
[verified] fix(ci): restore pytest execution
1 parent e0afc0f commit c76ed98

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ jobs:
3535
- name: Lint with ruff
3636
run: ruff check src/ tests/
3737
- name: Run tests
38+
run: python -m pytest tests/ -v --tb=short

tests/test_ci_workflow.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import yaml
2+
from pathlib import Path
3+
4+
ROOT = Path(__file__).resolve().parents[1]
5+
6+
7+
def test_ci_test_step_executes_full_suite():
8+
workflow = yaml.safe_load(
9+
(ROOT / ".github" / "workflows" / "ci.yml").read_text(encoding="utf-8")
10+
)
11+
test_steps = workflow["jobs"]["test"]["steps"]
12+
run_tests = next(
13+
(step for step in test_steps if step.get("name") == "Run tests"),
14+
None,
15+
)
16+
assert run_tests is not None, "CI test job must include a 'Run tests' step"
17+
assert run_tests.get("run") == "python -m pytest tests/ -v --tb=short"

0 commit comments

Comments
 (0)