workflows/tests: use the container and macos-14
for some jobs
#18395
+15
−7
macos-14
for some jobs
#18395