Could you set up some kind of independent study contract? Credit by examination? (This is different from "testing out" of a class.)

Our district has an independent study charter school. It's not exactly homeschooling because you and the school create the plan of study and they approve the curriculum. But the student studies at home on their own schedule.