1 parent e0afc0f commit c76ed98Copy full SHA for c76ed98
2 files changed
.github/workflows/ci.yml
@@ -35,3 +35,4 @@ jobs:
35
- name: Lint with ruff
36
run: ruff check src/ tests/
37
- name: Run tests
38
+ run: python -m pytest tests/ -v --tb=short
tests/test_ci_workflow.py
@@ -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