Here is some advice for running uphill:
In order to ascend a hill as quickly and efficiently as possible you need to ‘attack’ it. Lean forwards slightly and look ahead. Try to stay ‘tall’. Many runners have a natural tendency to lean too far forward and bend at the waist. This is counter-productive as it inhibits hip flexion and hip extension which limits your ability to generate power and biomechanical efficiency.
Your leg speed will naturally slow as you hit the gradient so try to counteract this by driving your arms powerfully. Your leg speed is determined by your arm speed, so quicker arms mean quicker legs!
Here is some advice for running downhill: