State tax filing

I work in a profession where I have the possibility of moving every year or so. For instance, in the last 3 years, I have lived in 4 different states. Kind of hard to try and get residency in all those areas when it has just been for a year stent. I lived in Maryland all of last year and currently live in Virginia.