Make sure we run the pytest discovery of tests late enough in the build
With gaudi/Gaudi!1621 (merged) we require that the pytest invocation used at build time to find test files succeeds. This makes LHCb builds fail because some of the modules pytest wants to inspect cannot be imported before we merge the fragments of the configurables database.
This MR adds a dependency ensuring that pytest is invoked late enough in the build phase.