Skip to content

ci: install PyYAML for the root pytest job - #4469

Merged
ashhart merged 2 commits into
mainfrom
lead/ci-pytest-pyyaml
Nov 22, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/ci-pytest-pyyaml

Conversation

@ashhart

@ashhart ashhart commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What this changes

tools/test_ci_workflow_conditions.py (added in 41177ae) reads the workflow files with yaml.safe_load, but the No GPU workflow's pytest job creates a venv with only pytest installed. Since that commit, every GitHub pytest run fails at collection with ModuleNotFoundError: No module named 'yaml', and pull requests based on main show a red pytest check that isn't theirs. This installs PyYAML next to pytest in that venv. No engine code changes.

Checks

  • The failure is in the pytest job's log: ImportError while importing test module tools/test_ci_workflow_conditions.py.
  • One workflow line; the job conditions the test counts are unchanged.

41177ae added tools/test_ci_workflow_conditions.py, which reads the workflow files with yaml.safe_load. The
pytest job's venv installs only pytest, so collection fails with ModuleNotFoundError on every GitHub pytest run.
@ashhart
ashhart force-pushed the lead/ci-pytest-pyyaml branch from a3270f5 to bb35ace Compare November 22, 2026 02:21
@ashhart
ashhart merged commit 2558607 into main Nov 22, 2026
12 checks passed
@ashhart
ashhart deleted the lead/ci-pytest-pyyaml branch November 22, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant