diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6cb35b8..0aaf23f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 \ No newline at end of file + seconds_between_github_reads: 1