Gitlab supports generating reports about what unit tests failed, using Pytest output in JUnit XML format.
If this change works, you'll see something like this below:
You can also see a live example on this TTAT MR.
Interestingly, this pipeline appears not to be running the unit tests. Is that by design?