fail (someone) on (something)
To give someone a failing grade on a school assignment. You clearly put zero effort into this essay—that's why I failed you on it.
fail someone on something
to give someone an unsatisfactory grade on an assignment or test. She failed us all on the math assignment. The teacher failed half the class on the assignment.