Pupils have been praised for their sporting achievements.