More CI tests for PR & double-trigger

This commit is contained in:
hakril
2025-02-01 23:37:28 +01:00
committed by GitHub
parent 8beb9fa092
commit 88b93dd64e
+7 -7
View File
@@ -1,16 +1,18 @@
# V0.1
name: Pytest
on: [push, pull_request, workflow_dispatch]
on:
push:
branches:
- 'master'
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
generate_ctypes:
# Prevent double trigger on my PR: so push for me and PR for forks
if: ${{(github.event_name == 'push') || (github.event.pull_request.head.repo.fork)}}
runs-on: windows-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
@@ -21,8 +23,6 @@ jobs:
- name: Check generated code can execute
run: py -c "import windows.generated_def"
tests:
# Prevent double trigger on my PR: so push for me and PR for forks
if: ${{(github.event_name == 'push') || (github.event.pull_request.head.repo.fork)}}
strategy:
fail-fast: false
matrix: