-
Notifications
You must be signed in to change notification settings - Fork 243
Expand file tree
/
Copy pathpytest.ini
More file actions
17 lines (17 loc) · 1 KB
/
Copy pathpytest.ini
File metadata and controls
17 lines (17 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[pytest]
# --strict-markers turns any unregistered marker into a collection error, so a
# typo'd @pytest.mark.modl can never silently no-op. Every custom marker must be
# declared below.
addopts = --strict-markers
markers =
model: test needs a real on-device completion (Apple Intelligence). Excluded
on GitHub runners (arm64 VMs without Apple Intelligence) via `-m "not
model"`; run locally by `make test` / `make release`. Marker discipline:
every model test calls require_model(), which FAILS (not skips) when
APFEL_MODELFREE_ONLY=1, so an unmarked model test that leaks past
`-m "not model"` on CI turns the run red instead of skipping silently.
serial: test mutates machine-global state (launchd/brew services) and must
never run in the parallel model-free phase. The pipeline runs
`-m "not model and not serial"` in parallel (pytest-xdist) and
`-m "model or serial"` serially; together the two selections cover
every test exactly once (#374).