I'd say: "Yesterday when I was watching TV, it was raining" The second is definitely past continuous, because it's like a background. If the first on is continuous too I'm not sure. But it's a period you watch TV.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.