Skip to content

Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.

ci: run the suite with the tools venv's python (#1800)

suantea (asuan_suan)b4baf9d2ecf8
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1eb28f069..b7b935cb7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -24,7 +24,10 @@ jobs:
- name: Example lists, README tables, shell helpers
env:
CLEANYOURTV_STRICT: ${{ github.event_name == 'push' && '1' || '' }}
- run: python3 -m unittest discover -s tests -v
+ # The venv interpreter, not the runner's python3: the runner has no adb_shell, so
+ # running the suite with it leaves test_tv_reboot to its child-rerun workaround
+ # instead of running in-process (#1800).
+ run: tools/venv/bin/python -m unittest discover -s tests -v
tables:
# Main only: a list PR adds just its folder and tv.json, so on a pull request the tables lag on purpose.
diff --git a/AGENTS.md b/AGENTS.md
index d302d828d..4419d8630 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -115,7 +115,7 @@ use it and ends with the check to run.
| Check | Command or rule |
|---|---|
-| Tests, as CI runs them | `python3 -m unittest discover -s tests -v` after `python3 -m venv tools/venv` and `tools/venv/bin/pip install -r tools/requirements.txt`. On `main`, CI sets `CLEANYOURTV_STRICT=1`, and its "README tables" job checks that the TV tables and counts are what `tools/gen_tables.py` writes. On Windows the suites that drive `tools/*.sh` report as skipped: they need a POSIX shell, and CI runs them. |
+| Tests, as CI runs them | `tools/venv/bin/python -m unittest discover -s tests -v` after `python3 -m venv tools/venv` and `tools/venv/bin/pip install -r tools/requirements.txt`. On `main`, CI sets `CLEANYOURTV_STRICT=1`, and its "README tables" job checks that the TV tables and counts are what `tools/gen_tables.py` writes. On Windows the suites that drive `tools/*.sh` report as skipped: they need a POSIX shell, and CI runs them. |
| Launcher, if you touched `launcher/` | JDK 17, Android SDK platform 34, build-tools 34.0.0. In `launcher/`: `./gradlew --no-daemon testReleaseUnitTest lintRelease assembleRelease`. Lint must stay at zero errors. |
| APK size gate | `launcher/app/build/outputs/apk/release/app-release.apk` must be under 589,824 B (576 KB). Linux: `stat -c %s`, macOS: `stat -f %z`. |
| README rows | A new list adds only its folder, with a `tv.json`: the TV tables, the brand line and the counts are generated after merging, so leave them alone. A theme has its row in `themes/README.md`; an add-on in `addons/README.md`. |
diff --git a/tests/test_agents_md.py b/tests/test_agents_md.py
index c2ebeff9b..aa70b004d 100644
--- a/tests/test_agents_md.py
+++ b/tests/test_agents_md.py
@@ -159,7 +159,7 @@ class AgentsNumbersTest(unittest.TestCase):
def test_commands_are_the_ones_ci_runs(self):
ci = CI.read_text(encoding="utf-8")
- for command in ("python3 -m unittest discover -s tests -v",
+ for command in ("tools/venv/bin/python -m unittest discover -s tests -v",
"./gradlew --no-daemon testReleaseUnitTest lintRelease assembleRelease",
"CLEANYOURTV_STRICT"):
with self.subTest(command=command):