Skip to content

Add CI workflow to run discovery tests#3

Merged
samuelduchesne merged 2 commits into
mainfrom
claude/add-discovery-ci
May 27, 2026
Merged

Add CI workflow to run discovery tests#3
samuelduchesne merged 2 commits into
mainfrom
claude/add-discovery-ci

Conversation

@samuelduchesne
Copy link
Copy Markdown
Contributor

Summary

Adds a GitHub Actions workflow so the discovery contract is guarded automatically — previously the tests/discovery/test_discover.py suite (added in #2) only ran locally.

  • Runs python -m unittest tests.discovery.test_discover on push to main and on every PR.
  • Matrix: Python 3.10 and 3.13 × Ubuntu and Windows — the Windows leg matters because discover.py has cross-platform interpreter-path logic (bin/python vs Scripts/python.exe).
  • Stdlib-only tests, so there's no dependency install step.

Test plan

  • python -m unittest tests.discovery.test_discover — 12 passed locally.
  • Workflow YAML validated.
  • CI goes green on this PR across all four matrix legs.

https://claude.ai/code/session_0121EsSJYijy1gbqZSJ1xFxv


Generated by Claude Code

claude added 2 commits May 27, 2026 01:12
Runs tests/discovery/test_discover.py on push to main and on pull requests,
across Python 3.10/3.13 and Ubuntu/Windows (the discovery logic has
cross-platform paths). Stdlib-only, so no dependency install step.

https://claude.ai/code/session_0121EsSJYijy1gbqZSJ1xFxv
Two assertions compared str(Path(...)) against forward-slash literals
(["/v/bin/python"]), which fail on Windows where Path renders with
backslashes — the cause of the Windows CI failures. Compute the expected
value the same way the code does, and exercise filesystem behavior against
real temp directories instead of patching pathlib.Path.is_file, so the
path-detection tests are correct and identical across POSIX and Windows.

https://claude.ai/code/session_0121EsSJYijy1gbqZSJ1xFxv
@samuelduchesne samuelduchesne merged commit 761ded9 into main May 27, 2026
4 checks passed
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.

2 participants