Run weekly 'nightly' tests against Pillow nightly wheels #179
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since f0d64c0, we don't put restrictions on the upper version of Pillow used. This creates a potential where a new release of an incompatible version of Pillow starts impacting all Wagtail users who upgrade their dependencies.
The nightly workflow introduced by this PR should alert us to such a scenario before it happens, by testing against the latest changes in Pillow's main branch before those changes make it into a release. This leaves us with a window to fix incompatibilities (or to report a bug upstream) before Pillow is released.
This PR relies on the assumption that Pillow keeps uploading compatible wheels to https://anaconda.org/scientific-python-nightly-wheels/pillow every Sunday. If that changes, the workflow also includes a check to raise alarm if the wheel is too old.
Example runs from my fork:
Note: this requires setting a
SLACK_WEBHOOK_URLsecret on the repository to enable the Slack notifications.Note: the workflow was drafted using ChatGPT and edited by me. I verified it works as intended. This note is here in accordance with https://wagtail.org/blog/guidance-for-ai-led-contributions/