I want to make the reruns more visible on CI by making use of github actions annotations.
This can be achieved easily using a plugin like pytest-github-actions-annotate-failures/ which can also translated runtime warnings into github annotations.
Now the only thing we need is to be able to configure pytest-rerunfailures to raise runtime warnings when it does reruns, so they will be visible.
AFAIK there is no option to hook into how reruns are made to make this happen.