There is are options in the Graph Editor tab : Channels > Extrapolation Mode > Make Cyclic or Shift+E and Make Cyclic from Graph Editor, that will put your animation in a loop