A facile one-pot green synthesis and antibacterial activity of 2-amino-4H-pyrans and 2-amino-5-oxo-5,6,7,8-tetrahydro-4H-chromenes.