Councillors swapped their familiar suits for running kit as they took part in a 10k race.