ci: generalize container test step