The two minors were arrested on Tuesday and placed in police custody.
The prosecutor's office requested that they be placed under judicial supervision pending their trial.
They must answer before the juvenile court for arson, endangering the lives of others, and criminal conspiracy.
The school was seriously damaged by a fire on the night of November 9 to 10.
The cost of the repairs is estimated at about 500,000 euros, according to the prosecutor's office.
One is enrolled at the school. The other had been expelled a few months earlier for behavioral problems.
One of the two teenagers is already known to the justice system. The second has no criminal record.
After denying their involvement, they admitted the facts once confronted with the evidence gathered by investigators.
They admitted to moving trash containers and using them to fuel the fire, the prosecutor's office said.
They were unable to get close because of the heavy smoke.
They said they acted out of"a desire to send a message in the context of high school students' demands, which they felt were not being sufficiently taken into account,"the prosecutor's office said.
The next steps in the proceedings now rest with the juvenile court, before which a judgment is expected.