Skip to content

Strengthen CI and test infrastructure #2

Done

Description

@martinctc

Context

CI currently runs unit + browser jobs on Ubuntu with Python 3.9/3.14. Gaps: no Windows/macOS coverage for the OS-specific DB path detection, no sample-data determinism check, no type checking, and no coverage reporting.

Checklist

  • Add Windows and macOS runners to the matrix — extract_usage.py default-DB-path detection (OPENCODE_DATA_DIR, XDG_DATA_HOME, per-user dir) is OS-specific and only exercised on one platform today
  • Add a CI test that regenerates sample_usage.csv from tools/make_sample_data.py and asserts byte-identical output (keeps the seeded-determinism promise honest)
  • Add mypy or pyright in strict mode to CI
  • Add pytest --cov and publish a coverage badge/summary
  • Document how to run the full suite locally

References

  • .github/workflows/ci.yml
  • tools/make_sample_data.py
  • tests/

Activity

  1. added
    enhancement
    on Nov 23, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions