If I lived in Virginia temporarily for 2 months while I was working there as a travel nurse do I file my Virginia state tax return as a resident or nonresident?

My permanent tax home is Wisconsin in which I lived for the other 10 months of 2021.