A few months ago, in the context of the fix for ticket-35981 (Confirm support for GDAL 3.10), @smithdc1, @claudep and myself agreed that it would be great, ideal, even necessary to have a way to run the GeoDjango tests with newer geospatial libraries.
At the time no one could pick this up, but yesterday I invested a few hours in looking for alternatives. There is a deeper discussion in the final PR comments, and now I’m moving the conversation to this post to increase visibility.
tl;dr We are trying GitHub actions to extend the version coverage testing for geodjango tests, and we think we could use a combo of community provided postgis docker images via a label-triggered action, and later on a GHA carefully crafted setup using conda to have finer control.
My opinion is to land the label-triggered workflow now to cover for latest stable (currently testsuite is passing) and once the gis_tests.geoapp.tests.GeoLookupTest.test_relate_lookup
is fixed, extend the workflow to also use the latest stable alpine image which has newer libraries (but still stable).