So after multiple long and failed deployments, I finally upgraded everything to work with Python 3.12 - including github actions, packages in requirements.txt and azure web app - and it worked....