You may not have to file a tax return in Canada if you didn't live in the country for the whole year.
You should contact the Canada Revenue Agency (CRA) to confirm if you need to. If you are in Canada or the United States, you can call the CRA at 1-800-959-8281. If you are elsewhere, you can call 613-940-8495. This page has more ways to contact the CRA: Contact the Canada Revenue Agency