Block deployment jobs when tests are running

[#73034210]