Skip to content

CI: add Python validation job (uv, validate.py, unit tests) - #7

Merged
jgoodyear merged 1 commit into
apache:mainfrom
QAInsights:ci/python-validation
Sep 13, 2026
Merged

jgoodyear merged 1 commit into
apache:mainfrom
QAInsights:ci/python-validation

Conversation

@QAInsights

Copy link
Copy Markdown
Contributor

Summary

  • ci.yml previously ran only mvn -B verify, so the repo's own
    Python-side gate — tools/validate.py and the validator's unit tests —
    was never enforced on PRs.
  • Adds a python-validate job: install uv via pipx (preinstalled on
    GitHub-hosted runners; avoids adding a third-party action such as
    astral-sh/setup-uv to the ASF allowlist), uv sync --extra dev,
    tools/validate.py, and python -m unittest discover -s tests.

Notes

  • tools/validate.py currently exits 0 vacuously because examples/ is
    not yet on main; the job will begin validating records automatically
    once examples land. The unit tests provide real signal in the meantime.
  • The three run commands are exactly the documented local gate from
    SETUP.md/AGENTS.md; verified locally on Linux.

Apache-ai: Yes
Generated-by: Devin (SWE-2 High)
Reviewed-by: nkn

The existing workflow only ran `mvn -B verify`, so the repo's own gate —
`tools/validate.py` plus the validator's unit tests — was never enforced
on PRs. Adds a python-validate job that installs uv via pipx (already on
the runner image, avoids a new third-party action on the ASF allowlist),
syncs dev dependencies, validates examples, and runs the unittest suite.

Note: validate.py currently exits 0 vacuously since examples/ is not yet
on main; the job starts validating records automatically once examples
land. The unit tests provide real signal in the meantime.

Apache-ai: Yes
Generated-by: Devin (SWE-2 High)
Reviewed-by: nkn
@jgoodyear
jgoodyear merged commit 691d26c into apache:main Sep 13, 2026
@jgoodyear

Copy link
Copy Markdown
Contributor

Thank you NKN :)

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