mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Prevent double-trigger in CI
This commit is contained in:
@@ -6,6 +6,8 @@ on: [push, pull_request, 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
|
||||
|
||||
@@ -19,7 +21,8 @@ jobs:
|
||||
- name: Check generated code can execute
|
||||
run: py -c "import windows.generated_def"
|
||||
tests:
|
||||
# Not a real dependency : but starting tests when ctypes generation is broken is not useful
|
||||
# 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:
|
||||
@@ -32,7 +35,7 @@ jobs:
|
||||
python-architecture: x86
|
||||
- python-bitness-to-test: 64
|
||||
python-architecture: x64
|
||||
|
||||
# Not a real dependency : but starting tests when ctypes generation is broken is not useful
|
||||
needs: generate_ctypes
|
||||
timeout-minutes: 15
|
||||
runs-on: ${{ matrix.runs-on }}
|
||||
@@ -90,4 +93,4 @@ jobs:
|
||||
check_name: PyTest Results for ${{ matrix.python-version}}-${{ matrix.python-bitness-to-test}}
|
||||
secondary_rate_limit_wait_seconds: 90
|
||||
seconds_between_github_writes: 10
|
||||
seconds_between_github_reads: 1
|
||||
seconds_between_github_reads: 1
|
||||
|
||||
Reference in New Issue
Block a user