Skip to content

Commit be94e14

Browse files
Run documentation contracts in CI
1 parent 3236174 commit be94e14

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from __future__ import annotations
2+
3+
import subprocess
4+
import sys
5+
from pathlib import Path
6+
7+
ROOT = Path(__file__).resolve().parents[2]
8+
9+
10+
def _run(script: str) -> None:
11+
result = subprocess.run(
12+
[sys.executable, str(ROOT / "tools" / script)],
13+
cwd=ROOT,
14+
text=True,
15+
capture_output=True,
16+
check=False,
17+
)
18+
assert result.returncode == 0, result.stdout + result.stderr
19+
20+
21+
def test_documentation_links() -> None:
22+
_run("check_docs_links.py")
23+
24+
25+
def test_readme_localization_parity() -> None:
26+
_run("check_readme_parity.py")

0 commit comments

Comments
 (0)