Skip to content

Commit

Permalink
GIT: fix the draft PR check if PR is a draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-FernandesBR committed Dec 3, 2023
1 parent 22bb07b commit 1c8d873
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/test_pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@ on:

jobs:
fail_if_pr_is_draft:
if: github.event.pull_request.draft == true
runs-on: ubuntu-18.04
timeout-minutes: 2
if: github.event.pull_request.draft
runs-on: ubuntu-latest
steps:
- name: Fails in order to indicate that pull request needs to be marked as ready to review and unit tests workflow needs to pass.
- name: Check if PR is draft
run: echo "This pull request is a draft. Please mark it as ready for review before proceeding."
- name: Fail
run: exit 1
pytest_and_doctest:
needs: fail_if_pr_is_draft
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-latest
Expand Down

0 comments on commit 1c8d873

Please sign in to comment.