mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-14 23:43:23 -05:00
docs: name jsonschema where the build needs it
This commit is contained in:
1 parent
d610aad990
commit
4a1a9dd861
5 files changed
+48
-19
No files matched your search
@@ -9,6 +9,7 @@ from __future__ import annotations
|
||||
|
||||
import ast
|
||||
import fnmatch
|
||||
import sys
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
@@ -85,5 +86,19 @@ class DeploySiteTriggers(unittest.TestCase):
|
||||
self.assertEqual(uncovered, [])
|
||||
|
||||
|
||||
class DocumentedSteps(unittest.TestCase):
|
||||
def test_the_release_page_names_every_installed_package(self):
|
||||
"""The page listed pyyaml and mkdocs and left out jsonschema: a
|
||||
maintainer following it could not run the contract check."""
|
||||
sys.path.insert(0, str(SCRIPTS))
|
||||
from check_freshness import parse_pip_pins # noqa: PLC0415
|
||||
|
||||
workflow = (REPO_ROOT / ".github/workflows/deploy-site.yml").read_text(encoding="utf-8")
|
||||
page = (REPO_ROOT / "wiki/release-process.md").read_text(encoding="utf-8")
|
||||
missing = sorted(name for name in parse_pip_pins(workflow) if name not in page)
|
||||
self.assertEqual(missing, [])
|
||||
self.assertIn("validate_schemas.py", page)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user