Skip to content

Commit 1c57c28

Browse files
Merge branch 'master' into rel/v1.0.0
2 parents 1ad3113 + 171e61f commit 1c57c28

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/test_pytest.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
name: PyTest
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened, ready_for_review]
6+
paths:
7+
- "**.py"
48

59
jobs:
6-
build:
10+
fail_if_pull_request_is_draft:
11+
if: github.event.pull_request.draft == true
12+
runs-on: ubuntu-18.04
13+
steps:
14+
- name: Fails in order to indicate that pull request needs to be marked as ready to review and unit tests workflow needs to pass.
15+
run: exit 1
16+
run_pytest_and_doctest:
717
runs-on: ${{ matrix.os }}
818
strategy:
919
matrix:

0 commit comments

Comments
 (0)