Skip to content

ci(release): automate post-release tasks - #2847

Merged
wpbonelli merged 1 commit into
modflowpy:developfrom
wpbonelli:post-release
Sep 9, 2026
Merged

ci(release): automate post-release tasks#2847
wpbonelli merged 1 commit into
modflowpy:developfrom
wpbonelli:post-release

Conversation

@wpbonelli

Copy link
Copy Markdown
Member

Restore a CI job to automatically open a pull request from master into develop after a release. We had this a while ago but it was removed in #1856. Drop the old manual instructions from the release guide. Tweak update_version.py

Re-adds a job that opens the pull request resetting develop from master
after a release, removed in modflowpy#1856 when it relied on a broken PEP 440 local
version segment. Modeled on the equivalent jobs in modflowapi and
modflow-devtools.

Publishing a release now drafts a branch that sets the development version
for the next cycle and opens a draft PR into develop. update_version.py is
reworked to follow modflow-devtools' CLI: --release strips the development
segment, --post-release computes the next cycle's version, --dry-run prints
without writing (replacing --get), and the resulting version is always
printed to stdout while progress goes to stderr. --post-release targets the
next anticipated minor with a .devN segment carrying the released patch
number (3.10.0.dev2 after 3.9.2, 3.12.0.dev0 after 3.11.0), matching every
past manual reset.

The release guide drops the manual branch-and-bump instructions.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VKLyLu5TbszS9HZxti4tk8
@wpbonelli wpbonelli added this to the 3.11.1 milestone Sep 9, 2026
@wpbonelli wpbonelli changed the title ci(release): automate the post-release develop reset ci(release): automate post-release reset tasks Sep 9, 2026
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.5%. Comparing base (556c088) to head (ede5aba).
⚠️ Report is 229 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2847      +/-   ##
===========================================
+ Coverage     55.5%    72.5%   +16.9%     
===========================================
  Files          644      659      +15     
  Lines       124135   132282    +8147     
===========================================
+ Hits         68947    95919   +26972     
+ Misses       55188    36363   -18825     

see 586 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wpbonelli wpbonelli changed the title ci(release): automate post-release reset tasks ci(release): automate post-release tasks Sep 9, 2026
@wpbonelli
wpbonelli marked this pull request as ready for review September 9, 2026 20:38
@wpbonelli

Copy link
Copy Markdown
Member Author

CI failures are unrelated

@wpbonelli
wpbonelli merged commit a9bb76e into modflowpy:develop Sep 9, 2026
34 of 41 checks passed
@wpbonelli
wpbonelli deleted the post-release branch September 9, 2026 20:40
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