Skip to content

Conversation

kieran-ryan
Copy link
Member

@kieran-ryan kieran-ryan commented Sep 15, 2025

Should run whenever there is a push to a Renovate branch. Doesn't require an additional run on same code if is also on a pull request.

🤔 What's changed?

Remove Python test workflow run on pre-commit pull request changes.

⚡️ What's your motivation?

Avoid redundant duplicate Python test workflow runs on renovate changes to pre-commit configuration (see #336); added within #324.

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

♻️ Anything particular you want feedback on?

  • Matches other workflows... though wouldn't run if changes raised to pre-commit configuration on another branch. Should we handle or is grand? Do Renovate changes always progress through pull requests?

📋 Checklist:

Should run whenever there is a push to a Renovate branch.
Doesn't require an additional run on same code if is also on a pull request.
@kieran-ryan kieran-ryan self-assigned this Sep 15, 2025
@kieran-ryan kieran-ryan added the 🐛 bug Defect / Bug label Sep 15, 2025
@mpkorstanje
Copy link
Contributor

Do Renovate changes always progress through pull requests?

No. For minor and patch upgrades Renovate is allowed by bypass CI if the tests are passing.

Copy link
Contributor

@mpkorstanje mpkorstanje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will work. Duplicate workflows for pushes and PRs are a fact of Githubs trigger model.

@@ -15,7 +15,6 @@ on:
branches:
- main
paths:
- .pre-commit-config.yaml
Copy link
Contributor

@mpkorstanje mpkorstanje Sep 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The on.push trigger is limited to push on the main and renovate/** branches. So by removing this nothing will run when I push to feature/example-feature or when I create a PR targeting main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Defect / Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants