Iran vowed yesterday to press ahead with its nuclear programme while the US warned it would not rule out military action against the country.