Could make a GitHub Workflow which executes only on a PR and triggers a website build into a separate staging directory, would let us see if the website generation is still working correctly without having to pull in the branch locally and run the website generation.
Could be done by creating a gh-pages branch on this repository where we build the html into a staging directory, such that going to oscovida.github.io/oscovida/staging would show the test-generated website, but that would end up with the html files and plots being committed to this repo and massively increasing its size, and the url is a tad confusing/could clash with the existing one.
Could also be put into a separate directory on the oscovida.github.io repo itself, but that could get quite confusing as well, and might clash with the self-hosted runner that generates the reports twice a day.
Best option would probably be to make another repository (called staging
?), then with a bit of work, a PR would trigger a build in the staging repository, and then we could go to oscovida.github.io/staging/PR_NUMBER to see what the website looks like.
Using the debug flag on the report generator limits it to 10 reports per region, which would also mean this can easily be ran on the GitHub provided runners as a few dozen reports won't take too long to execute even on the single-core runners. Use something like:
python -m report_generators.cli -r all --debug --log-level INFO