I am using pytest-regressions in CI workflows like GHA, mostly with pictures.
Often times, tests run well locally but fail in the CI environment, however GHA does not allow to display pictures to see what is wrong.
A solution is to use the upload-artifact action to make the faulty pictures downloadable.
Achieving this is not straightforward: the pytest output should be exported, then parsed in search of the .obtained pattern, then passed to upload-artifact.
It would be awesome if pytest-regression would implement an option to automate this in pytest.
For example, a --export-regressed-file-paths=/path/to/something.txt and write the paths inside.
What do you think?
I am using pytest-regressions in CI workflows like GHA, mostly with pictures.
Often times, tests run well locally but fail in the CI environment, however GHA does not allow to display pictures to see what is wrong.
A solution is to use the upload-artifact action to make the faulty pictures downloadable.
Achieving this is not straightforward: the pytest output should be exported, then parsed in search of the
.obtainedpattern, then passed to upload-artifact.It would be awesome if pytest-regression would implement an option to automate this in pytest.
For example, a
--export-regressed-file-paths=/path/to/something.txtand write the paths inside.What do you think?