Skip to content

Commit 88b93dd

Browse files
authored
More CI tests for PR & double-trigger
1 parent 8beb9fa commit 88b93dd

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
# V0.1
21
name: Pytest
32

4-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
pull_request:
58
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
611

712
jobs:
813
generate_ctypes:
9-
# Prevent double trigger on my PR: so push for me and PR for forks
10-
if: ${{(github.event_name == 'push') || (github.event.pull_request.head.repo.fork)}}
1114
runs-on: windows-latest
1215
timeout-minutes: 5
13-
1416
steps:
1517
- uses: actions/checkout@v4
1618
- uses: actions/setup-python@v5
@@ -21,8 +23,6 @@ jobs:
2123
- name: Check generated code can execute
2224
run: py -c "import windows.generated_def"
2325
tests:
24-
# Prevent double trigger on my PR: so push for me and PR for forks
25-
if: ${{(github.event_name == 'push') || (github.event.pull_request.head.repo.fork)}}
2626
strategy:
2727
fail-fast: false
2828
matrix:

0 commit comments

Comments
 (0)