I don’t know what to say about handling sweat and rain, but I went running a few times with my airpods and also washed them a few times with and without case and they are still working :D
I have to imagine they'd last up to a half marathon, but might struggle on a full marathon.