* test: resolve temp paths in the CLI tests so they pass off Linux
These assertions compare a path the CLI printed against one built from
`tempfile.TemporaryDirectory()`. On Linux those agree; on macOS they do not,
because `/var` is a symlink to `/private/var` and the CLI resolves it:
AssertionError: 'model_dir = "/var/folders/.../models"'
not found in 'model_dir = "/private/var/folders/.../models"'
18 of 153 non-GPU tests failed that way. Windows has its own version of the same
problem — `RUNNER~1` 8.3 short names and drive-letter case — so this blocks CI on
any non-Linux runner.
Resolve at the point the temp directory is wrapped, which is what
`test_cli_v2_download.py` already does at its seven sites and why that file was
the only one passing. 129 call sites across the other four files; no behaviour
changes, the comparison just uses the same canonical form on both sides.
153 passed, 0 failed afterwards.
* ci: run the lightweight checks on Windows too
Everything platform-specific in this repo was unverified. `pyproject.toml`
carries three `sys_platform` markers — triton-windows gated to win32, and the
wetext / WeTextProcessing split on linux — and `cli_tests` branches three ways on
`sys.platform` for config and model-cache locations. CI only ever exercised the
Linux side of any of it. The triton-windows marker bug (#742, #749) was exactly
this shape: a Windows-only resolution failure that no amount of green Linux CI
could catch.
No GPU is needed. `-m "not gpu"` deselects the 22 GPU tests, and the one
remaining case that passes `--device cuda` runs against a hand-built
`SimpleNamespace` whose `is_available` is `lambda: True`
(`cli_tests/test_cli_v2_check.py:93-98`), so nothing looks for a real device.
`fail-fast: false` so a Windows failure still lets the Linux result through, and
the uv cache is enabled — the Windows job resolves a cu128 torch and there is no
reason to refetch it every run.
Blocking rather than advisory, because the previous commit fixed the path
assertions that would otherwise have failed there: 153 passed, 0 failed.
---------
Co-authored-by: nanaoto <10inspiral@gmail.com>
* feat(webui): add preset save/load/manage support
* fix(webui): fix preset initialization and loading issues
* feat(cli/webui): expose use_accel and use_torch_compile options
- Add --accel/--torch-compile flags to CLI v2 synth and batch commands
- Add use_accel/use_torch_compile to persisted config keys
- Pass both options through to IndexTTS2 in CLI and WebUI
- Update relevant CLI tests for new runtime options
* feat(webui): add UI checkboxes for use_accel and use_torch_compile in advanced settings
- Add two checkboxes in the advanced settings accordion
- Default values follow the --accel / --torch_compile CLI flags
- Rebuild the IndexTTS2 engine when checkbox values differ from current instance
* feat: expose accel/torch_compile as startup args only; add optional extras
* docs: remove Windows acceleration note from README
* test(cli): mock flash_attn/triton imports in no-GPU CLI tests
---------
Co-authored-by: Jennie <wangyihui02@bilibili.com>