I am wondering how it is possible to publish a generated HTML report via GitHub? I think our use case is quite standard and it looks more or less like this:
- Startup docker image
- Some python setup work ( install packages from requirements.txt )
- Run some python test (
slash run --with-coverage --cov . ./tests --cov-report html
) --> This generates a HTML report indicating the test coverage. - Publish that generated HTML report so that it can directly be viewed from within the browser ( without the need of downloading the report)
I am stuck with step 4. Even there is GitHub pages, it can only publish files that are actually checked in and not reports that get generated during a step in the actions.
Furthermore it seems like that via GitHub I can only specify a certain branch from where it will be published. However, I would like to have this functionality on all branches to see if coverage actually improves or not.
As mentioned, I don't think that this is a rare use case, therefore I am surprised that I don't find any resources about how to achieve this.