do you need to file tax as resident if you have stayed outside US for 2 years ? I plan to file as non-resident as i was outside the country all of last year.

I have applied for mothers GC (i485 interview) and need to understand the process. Is GC rejected if you file tax as non -resident...