mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-27 03:48:52 -06:00
chore: check install.py against installer/ in CI
validate.yml and pr_checks.py run build_installer.py --check after the lint, vermin holds installer/ to 3.8 beside install.py, mypy and ruff read the package, and both workflows trigger on installer/**. CONTRIBUTING says where installer changes go.
This commit is contained in:
1 parent
e9f6fe43a0
commit
a98e0a7140
6 files changed
+57
-26
No files matched your search
@@ -910,6 +910,14 @@ Full walkthrough: [adding a platform]({link("wiki/adding-a-platform")}).
|
||||
|
||||
Full walkthrough: [profiling guide]({link("wiki/profiling")}).
|
||||
|
||||
## Change the installer
|
||||
|
||||
`install.py` is built from the `installer/` package, one module per concern:
|
||||
edit the module, then run `python scripts/build_installer.py` and
|
||||
`python scripts/pin_installer.py`. CI fails when `install.py` is not the file
|
||||
the package builds. [Changing the installer]({link("wiki/installer")}#changing-the-installer)
|
||||
lists what else a change rewrites.
|
||||
|
||||
## File conventions
|
||||
|
||||
- `bios/Manufacturer/Console/filename` for canonical files
|
||||
|
||||
@@ -40,12 +40,13 @@ class Step:
|
||||
STEPS: tuple[Step, ...] = (
|
||||
Step("python scripts/validate_pr.py --changed", "the BIOS files the branch adds"),
|
||||
Step("python scripts/validate_schemas.py --source-only", "profiles and platform files"),
|
||||
Step("mypy", "no type error in install.py and scripts/", needs="mypy",
|
||||
Step("mypy", "no type error in install.py, installer/ and scripts/", needs="mypy",
|
||||
provider='pip install -e ".[dev]"'),
|
||||
Step("ruff check .", "the lint rules of pyproject.toml", needs="ruff",
|
||||
provider='pip install -e ".[dev]"'),
|
||||
Step("python scripts/build_installer.py --check", "install.py is the one installer/ builds"),
|
||||
Step("python scripts/profile_sync.py --added --strict", "each profile the branch adds"),
|
||||
Step("vermin --no-tips -t=3.8- --violations install.py", "install.py stays on Python 3.8",
|
||||
Step("vermin --no-tips -t=3.8- --violations install.py installer", "the installer stays on Python 3.8",
|
||||
needs="vermin", provider="the pip line of CONTRIBUTING.md"),
|
||||
Step("shellcheck --version", "the launcher test runs shellcheck", needs="shellcheck",
|
||||
provider="the shellcheck package"),
|
||||
|
||||
Reference in new issue
Block a user