Worked in another state during the summer

I am a college professor. My job and permanent residence were in Texas during 2016, but I worked for 7 weeks teaching in the summer in another state (Minnesota). I rented an apartment for 2 months in Minnesota for this. Does this mean that I lived in two states for tax purposes?