Just don't change that day like i do hahahah. On the days i wanna look good and wear nice things i just sit out in gym class. but dont do it too much because you can fail..nobody wants that.
But if you absolutely have to participate maybe ask the teacher if you can come up early or something?
If they are that tight though maybe you shouldnt wear them too school also?