Fix past CI
# What does this PR do?

I tried to launch Past CI (the 2nd round) after #20861, but there are some more fixes required: Past CI images don't install other dependencies, and we need more decorators to skip some tests if they are not installed.
_The documentation is not available anymore as the PR was closed or merged._