Skip to content

CI: skills-python tests fail due to missing PyYAML dependency #24342

@Vaibhavee89

Description

@Vaibhavee89

Problem

The skills-python CI test job is failing during test collection with:

ModuleNotFoundError: No module named 'yaml'

Root Cause

The test file skills/skill-creator/scripts/test_quick_validate.py imports from quick_validate.py:

from quick_validate import validate_skill

And quick_validate.py contains:

import yaml

However, PyYAML is not installed in the GitHub Actions CI environment. The test fails during collection (before any tests even run) because the module import fails.

Evidence from CI

skills/skill-creator/scripts/test_quick_validate.py:10: in <module>
    from quick_validate import validate_skill
skills/skill-creator/scripts/quick_validate.py:11: in <module>
    import yaml
E   ModuleNotFoundError: No module named 'yaml'

Suggested Fixes

Choose one of the following approaches:

Option 1: Add PyYAML to requirements

Add pyyaml to the appropriate requirements file (e.g., skills/skill-creator/requirements.txt or a test-specific requirements file).

Option 2: Update CI workflow

Install PyYAML in the skills-python CI job:

- name: Install dependencies
  run: |
    pip install pyyaml
    # ... other dependencies

Option 3: Mock the import (if testing without real yaml parsing)

If test_quick_validate.py doesn't need actual yaml parsing, stub the yaml import in the test setup.

Impact

This is blocking the skills-python CI check on all PRs. While it doesn't affect the core TypeScript/Node.js functionality, it prevents validating Python skill validation scripts.

Related

This issue was discovered while working on:

Both PRs pass all TypeScript/agent tests but are blocked by this pre-existing Python dependency issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions