Skip to content

Pin Python test requirements #169

Closed
Closed

Description

@TMHSDigital

Summary

requirements-test.txt uses open-ended lower bounds with no lock, and release.yml installs it before deciding whether to release.

Where

  • requirements-test.txt:1-2
  • .github/workflows/release.yml:76, :79

Details

A new major of pytest or PyYAML can change behavior in the release gate without any repository change. Dependabot is configured for pip (.github/dependabot.yml:14), so exact pins would still be kept current.

Impact

A surprise upstream release can fail (or silently change) the structure tests that gate releases.

Suggested fix

Pin exact versions (pytest==X.Y.Z, pyyaml==X.Y.Z) and let Dependabot bump them.

Acceptance criteria

  • Exact versions pinned

Getting started

  • Relevant files: requirements-test.txt, .github/workflows/release.yml
  • How to run tests: cd mcp-server && npm install && npm test (and npm run typecheck); structure tests: pip install -r requirements-test.txt && pytest tests/ -v
  • Conventions: see CLAUDE.md and CONTRIBUTING.md

Filed by repo-audit/full-audit at 636fefb. Severity: low. Effort: S. audit-key: dependencies|requirements-test.txt|pytest

Activity

  1. added
    good first issue
    dependencies
    severity: low
    on Nov 18, 2026
  2. TMHSDigital commented on Nov 19, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 9e343c9: pytest==9.2.0 and pyyaml==6.0.3 (current releases), kept current by the existing Dependabot pip updater. Verified in a fresh venv: install from requirements-test.txt, pytest tests/ passes (278).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesgood first issueseverity: low

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions