Skip to content

ci: add Python test matrix and expand coverage - #1

Closed
ghostfix-pm wants to merge 1 commit into
mainfrom
feat/ci-and-tests
Closed

ghostfix-pm wants to merge 1 commit into
mainfrom
feat/ci-and-tests

Conversation

@ghostfix-pm

Copy link
Copy Markdown
Owner

Summary

  • Add pyproject.toml with pytest/ruff config and Python version classifiers
  • Expand pyproject.toml with pytest/ruff config and Python version classifiers
  • Expand pyproject.toml with pytest/ruff config and Python version classifiers
  • Expand .gitignore to cover common Python artifacts (dist/, build/, .eggs/, .mypy_cache/, etc.)
  • Add tests/test_eval_helpers_extended.py with 26 new tests covering:
    • format_result edge cases (stderr-only, no elapsedMs, raw errors, line/col)
    • format_process_error variations
    • augmented_path edge cases (empty current, order preservation, tilde expansion)
    • build_eval_argv edge cases (custom timeout, zero timeout, paths with spaces)
    • choose_source edge cases (empty buffer, whitespace-only, multiple with empty)
    • resolve_sema behavior for missing vs real binaries
    • _startupinfo_kwargs Unix behavior
  • All 49 tests pass (13 original + 26 new + 10 contract tests)

Test Results

49 passed in 0.06s

Files Changed

File Δ What
pyproject.toml +32 Build config, classifiers, pytest/ruff settings
.gitignore +16 Expanded Python artifacts
tests/test_eval_helpers_extended.py +122 26 new test cases
.github/workflows/ci.yml modified (removed due to token scope — see note)

Note: CI workflow update was removed because the OAuth token lacks workflow scope. The original validation workflow is preserved in the upstream repo. A follow-up PR can add it with proper permissions.

- Add pyproject.toml with pytest/ruff config and classifiers
- Expand .gitignore to cover common Python artifacts
- Add test_eval_helpers_extended.py: 26 new tests for format_result,
  augmented_path, build_eval_argv, choose_source, resolve_sema edge cases
- Update CI workflow: add Python test matrix job (3.8-3.12), keep
  existing YAML/JSON/plist validation
@ghostfix-pm
ghostfix-pm deleted the feat/ci-and-tests branch July 22, 2026 09:04
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