You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backstop for the "no skips in CI" policy established in #53/#54. Right now CI installs both `ansible-vault` and `cue` so the existing `requires_*` skip markers don't fire — but if a future test gains a new skip marker without its tool being added to CI, that test silently doesn't run. CI passes, the test never executed.
Make this impossible: install a pytest hook that converts any skipped test into a session-level failure, but only when running under GitHub Actions (env `GITHUB_ACTIONS=true`). Local development is untouched — skip markers stay useful there.
Implementation Sketch
In `tests/conftest.py`:
```python
import os
_skipped_in_ci: list[tuple[str, str]] = []
@pytest.hookimpl(trylast=True)
def pytest_runtest_logreport(report):
if os.environ.get("GITHUB_ACTIONS") == "true" \
and report.skipped and report.when == "setup":
_skipped_in_ci.append((report.nodeid, str(report.longrepr)))
def pytest_sessionfinish(session, exitstatus):
if not _skipped_in_ci:
return
print(...) # listing
session.exitstatus = 1
```
Scope
Triggered by `GITHUB_ACTIONS=true` (specific to our actual CI; doesn't fire on every CI=true env).
No exemptions. If a future test legitimately needs a skip, that's a design conversation, not a default escape hatch.
xfail/xpass untouched — different concept, separate policy.
Activity