Skip to content

CI: run on maintenance branches as well#51

Merged
tylerjereddy merged 1 commit intomainfrom
treddy_run_ci_on_maintenance_branches
Feb 5, 2026
Merged

CI: run on maintenance branches as well#51
tylerjereddy merged 1 commit intomainfrom
treddy_run_ci_on_maintenance_branches

Conversation

@tylerjereddy
Copy link
Collaborator

  • There is no matching issue for this patch, but I think it would be helpful if we allow CI to run on maintenance branches so that we can check that i.e., backported bug fixes are "ok" on release branches as well.

  • Also, there is no need to run the CI again on main after merging a PR--it should suffice to check that CI is passing before the merge (GHA will automatically try merging the branch into main before the tests run in the PR, so basically just wastes electricity). The reason for running CI on pushes to release/maintenance branches is that sometimes projects will setup for automatic wheel builds on merge to release branches (we don't have that yet, but doesn't hurt to have it on I don't think, merges to release branches will be rare anyway).

  • This configuration is lifted directly from upstream at: https://github.com/scipy/scipy/blob/main/.github/workflows/linux.yml#L3 where it has been working well for years.

@tylerjereddy
Copy link
Collaborator Author

oh right, I should do the same for wheel test CI config... one sec

* There is no matching issue for this patch, but I think it would
be helpful if we allow CI to run on maintenance branches so that
we can check that i.e., backported bug fixes are "ok" on release
branches as well.

* Also, there is no need to run the CI again on `main` after
merging a PR--it should suffice to check that CI is passing before
the merge (GHA will automatically try merging the branch into `main`
before the tests run in the PR, so basically just wastes electricity).
The reason for running CI on pushes to release/maintenance branches is
that sometimes projects will setup for automatic wheel builds on merge
to release branches (we don't have that yet, but doesn't hurt to have
it on I don't think, merges to release branches will be rare anyway).

* This configuration is lifted directly from upstream at:
https://github.com/scipy/scipy/blob/main/.github/workflows/linux.yml#L3
where it has been working well for years.
@tylerjereddy tylerjereddy force-pushed the treddy_run_ci_on_maintenance_branches branch from 202d668 to 4eaf911 Compare February 5, 2026 17:50
@tylerjereddy
Copy link
Collaborator Author

The CI is passing and this has been working upstream for years. I'll use a bit of "release manager discretion" to self-merge in this case, since this is useful to have on release branches moving forward and we're about to cut a release.

@tylerjereddy tylerjereddy merged commit 3a2a26b into main Feb 5, 2026
18 checks passed
@tylerjereddy tylerjereddy deleted the treddy_run_ci_on_maintenance_branches branch February 5, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant