actions/setup-python has no builds for Debian, so the lint leg fails on
PhotoCraft's artcraft-k8s-main (Trixie) runners. The action only needs
tomllib (3.11+); use the system interpreter when that is already new
enough, and install 3.12 only on older images such as ubuntu-22.04.
Part of #335