Skip to content

CI workflow to run Python ruff/mypy checks#133

Merged
knoepfel merged 7 commits intomainfrom
jules-feature-add-python-workflows
Dec 1, 2025
Merged

CI workflow to run Python ruff/mypy checks#133
knoepfel merged 7 commits intomainfrom
jules-feature-add-python-workflows

Conversation

@greenc-FNAL
Copy link
Contributor

Resubmission of #126

@greenc-FNAL
Copy link
Contributor Author

@phlexbot format

greenc-FNAL and others added 6 commits December 1, 2025 13:14
Refactors the `python-check.yaml` and `python-fix.yaml` GitHub Actions workflows to align with the structure and conventions of their Clang counterparts.

- In `python-check.yaml`, introduces a `pre-check` job to separate environment detection, improving the workflow's dependency graph and clarity.
- In `python-fix.yaml`, enhances the issue comment trigger by moving the validation logic directly into the job's `if` condition. This is more efficient and secure, preventing the job from starting unnecessarily.
- Standardizes the pinning of third-party actions to commit SHAs and local actions to the `main` branch across both workflows.
@greenc-FNAL greenc-FNAL force-pushed the jules-feature-add-python-workflows branch from cfff989 to 34c4f14 Compare December 1, 2025 19:16
This commit aligns the `python-check.yaml` and `python-fix.yaml` workflows with the consistency improvements and standards established in PR #135.

Key changes include:
- Refactoring `python-fix.yaml` to use a single-job design, moving the trigger logic into a job-level `if` condition.
- Correcting the `uses` syntax for internal reusable actions to use the full repository path and pin to `@main`, resolving a syntax error (`@main@main`).
@knoepfel knoepfel merged commit 04b9f03 into main Dec 1, 2025
29 checks passed
@greenc-FNAL greenc-FNAL deleted the jules-feature-add-python-workflows branch December 2, 2025 15:49
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