I don't eat when I'm depressed either. I'm glad to see I'm not the only one who worries about this! Yesterday I realized that none of my clothes fit and I walk around shaking and dizzy all the time but the thought of eating anything exhausts me or seems unappetizing. I think you just have to force yourself to do it, honestly. Don't eat huge amounts, let your body gradually get back up to normal food intake. My stomach rebels if I've gone without eating then eat a big meal and sometimes it does make me throw up, it's not good. Anything I do eat when I'm depressed requires little to no effort -- fruit, dry cereal, granola bars, anything I don't have to cook or prepare, which is the worst part for me. Do you think you're not eating because of the effort involved in preparing a meal? Maybe you could keep a stock of simple, ready-to-go things like granola bars in your locker at school or your bedroom at home, within easy reach so that you're at least getting SOMETHING into your system.
Have you mentioned your loss of appetite to your doctor, parents or a friend? If you can, tell someone you trust. I have a good friend who knows that my depression stops me from eating and she reminds me gently that I really should eat, and gives me just enough encouragement to actually do it. It's helpful to have someone looking out for me that way because I don't know about you, but others tend to notice I'm depressed before I do. It doesn't usually occur to me that I've stopped eating (despite the hunger pangs I feel constantly -- it just doesn't compute for me) until someone mentions that I'm too thin or asks how my depression is going. Having someone to help you monitor this stuff can be a really useful tool for fighting off the illness.
Anyway, I just wanted you to know you're not alone in this. Take care