Development Environment for different versions?

I assume there might be quite a few cases where a developer would want to test something against a version that works, and then against a newer version where it fails.

To try that, I got this advice in a comment:

  1. Get git repo
  2. source ./hacking/env-setup
  3. git checkout <version>
  4. test

But I can’t find anything in the documentation about it.

Also, after setting up a fresh Debian Trixie (13) environment it doesn’t work. I assume it worked in my previous Bookworm (12) setup was because I had older versions of the undocumented requirements installed through system packages, because at some time in the past I was running ansible from system packages.

How would you recommend a fresh install to approach these development requirements?

The docs are here, i just gave you a ‘short version’ earlier.

Also, requirements are part of the repo (test has an additional set in the test subdir)