Added a job to python.yml to summarize the previous test jobs in the workflow. This enables adding the name of just one workflow job under the "Require status checks to pass before merging" setting for the branch protection rule of the main branch (for admins: see https://github.com/MAKENTNU/web/settings/branches). The alternative before this, was to add the name of each generated workflow matrix job (currently "Python 3.10" and "Python 3.11"), which has the obvious downside of requiring being updated every time we change Python version numbers.
Also renamed the build job to the more fitting name test.
Areas to review closely
None in particular.
Checklist
(If any of the points are not relevant, mark them as checked)
[x] Created tests that fail without the changes, if relevant/possible
(It's not intended that you read through this whole document, but that you get yourself an overview over its contents, and that you keep it in mind while taking a second look at your code before opening a pull request)
[x] Added sufficient documentation - e.g. as docstrings or in the README, if suitable
[x] Added your changes to the "Unreleased" section of the changelog - mainly the changes that are of particular interest to users and/or developers, if any
[x] Added a "Deployment notes" section above, if anything out of the ordinary should be done when deploying these changes to the server
Proposed changes
Added a job to
python.yml
to summarize the previous test jobs in the workflow. This enables adding the name of just one workflow job under the "Require status checks to pass before merging" setting for the branch protection rule of themain
branch (for admins: see https://github.com/MAKENTNU/web/settings/branches). The alternative before this, was to add the name of each generated workflow matrix job (currently "Python 3.10" and "Python 3.11"), which has the obvious downside of requiring being updated every time we change Python version numbers.Also renamed the
build
job to the more fitting nametest
.Areas to review closely
None in particular.
Checklist
(If any of the points are not relevant, mark them as checked)