From #25073 where @HaoZeke pointed out CI is currently not properly testing f2py on windows.
I believe the solution is to have a new CI job, where (some) f2py tests should be tested the way users would use them, i.e. by generating the meson build directory with the skeleton template and then running meson within with the right environment variables.