"If, after reading this pamphlet, you are still not sure of your residency status, complete Form NR73, Determination of Residency Status (Leaving Canada), and send it to the International Tax Services Office as soon as possible. We will give you our opinion of your residency status based on the information you provide." (From CRA website)
More information about your residency status and how to file your tax return is here: