For a python application, I have setup a GitHub action that runs pytest (and other tools) on each pull request to master.
When the workflow fails, I saw it in the "Check" tab on the pull request page, but I can merge my branch even if the GitHub action fails:
In my repository, settings -> branches, I created a new protection rules that matches my need, but I can't specify any status check.
All I want to do is to use my workflow to allow (or forbid) a Pull Request to be merged according to the workflow's output.
Any ideas?