Additional to actual test, we could enforce a style guide with flake8 and pylint via a separate pipeline which just needs to find all Python files in the repo (no valid Dumux installation / Python bindings installation required I guess)
The test selection obviously doesn't work for the Python stuff. In a first step I just always run the Python tests. We could only run them if some python/python-binding code changed. Other than that I have no idea how to detect stuff because with JIT it's not known in advance which headers will be compiled.