Add pytest output hook to write test durations as metrics
The test jobs output the durations of the tests for each project in the standard pytest terminal output. This is useful to understand performance regressions in a given package, or the whole distribution, or the infrastructure.
It would be nice to be able to report these durations as a metric report that renders nicely in the merge request UI.