Moved from US to Canada

I lived in the US on H1B until July 22 and moved  to Canada. An i a tax non resident or tax resident? or can i be tax resident from jan 2019 to july 2019 and a non resident from aug 2019 to dec 2019?

Does turbo tax have an option to do that? do i have to show my Canadian income too?