Trying to create a workflow that will run some tests when a PR comment is left. The goal is to have the workflow show up on the PR as a status check as well.
name: Functional Tests on: issue_comment: types: [created] pull_request_review: types: [submitted] jobs: functest: # Only run this if the user asked us to if: github.event.comment.body == 'run functest' runs-on: self-hosted container: image: python:3.7-buster steps: - uses: actions/checkout@v2 - name: Install dependencies run: | python -m pip install --upgrade pip pip install -r requirements.txt - name: Test with pytest run: | pip install pytest pytest -s basic_functest.py
In the example above, the workflow is triggered with a comment, however it doesn’t show up as a status check for the PR.
Any help here would be appreciated - thanks!