Skip to content

Commit fc39889

Browse files
committed
ci: reduce runs on draft PRs
Signed-off-by: Henry Schreiner <[email protected]> Update ci.yml
1 parent df595b1 commit fc39889

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: CI
33
on:
44
workflow_dispatch:
55
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
- ready_for_review
611
push:
712
branches:
813
- master
@@ -27,6 +32,7 @@ jobs:
2732
# This is the "main" test suite, which tests a large number of different
2833
# versions of default compilers and Python versions in GitHub Actions.
2934
standard:
35+
if: github.event.pull_request.draft == false
3036
strategy:
3137
fail-fast: false
3238
matrix:
@@ -216,8 +222,10 @@ jobs:
216222
pytest tests/extra_setuptools
217223
if: matrix.runs-on != 'windows-2022'
218224

225+
219226
manylinux:
220227
name: Manylinux on 🐍 3.13t • GIL
228+
if: github.event.pull_request.draft == false
221229
runs-on: ubuntu-latest
222230
timeout-minutes: 40
223231
container: quay.io/pypa/musllinux_1_2_x86_64:latest
@@ -242,6 +250,7 @@ jobs:
242250
run: cmake --build --preset testsvenv -t pytest
243251

244252
deadsnakes:
253+
if: github.event.pull_request.draft == false
245254
strategy:
246255
fail-fast: false
247256
matrix:
@@ -318,6 +327,7 @@ jobs:
318327

319328
# Testing on clang using the excellent silkeh clang docker images
320329
clang:
330+
if: github.event.pull_request.draft == false
321331
runs-on: ubuntu-latest
322332
strategy:
323333
fail-fast: false
@@ -438,6 +448,7 @@ jobs:
438448

439449
# Testing on Ubuntu + NVHPC (previous PGI) compilers, which seems to require more workarounds
440450
ubuntu-nvhpc7:
451+
if: github.event.pull_request.draft == false
441452
runs-on: ubuntu-22.04
442453
name: "🐍 3 • NVHPC 23.5 • C++17 • x64"
443454

@@ -489,6 +500,7 @@ jobs:
489500

490501
# Testing on GCC using the GCC docker images (only recent images supported)
491502
gcc:
503+
if: github.event.pull_request.draft == false
492504
runs-on: ubuntu-latest
493505
strategy:
494506
fail-fast: false
@@ -557,6 +569,7 @@ jobs:
557569

558570
# Testing on ICC using the oneAPI apt repo
559571
icc:
572+
if: github.event.pull_request.draft == false
560573
runs-on: ubuntu-22.04
561574

562575
name: "🐍 3 • ICC latest • x64"
@@ -652,6 +665,7 @@ jobs:
652665
653666
# Testing on CentOS (manylinux uses a centos base).
654667
centos:
668+
if: github.event.pull_request.draft == false
655669
runs-on: ubuntu-latest
656670
strategy:
657671
fail-fast: false
@@ -713,6 +727,7 @@ jobs:
713727

714728
# This tests an "install" with the CMake tools
715729
install-classic:
730+
if: github.event.pull_request.draft == false
716731
name: "🐍 3.9 • Debian • x86 • Install"
717732
runs-on: ubuntu-latest
718733
container: i386/debian:bullseye
@@ -757,6 +772,7 @@ jobs:
757772
# This verifies that the documentation is not horribly broken, and does a
758773
# basic validation check on the SDist.
759774
doxygen:
775+
if: github.event.pull_request.draft == false
760776
name: "Documentation build test"
761777
runs-on: ubuntu-latest
762778

@@ -791,6 +807,7 @@ jobs:
791807
diff -rq $installed ./pybind11
792808
793809
win32:
810+
if: github.event.pull_request.draft == false
794811
strategy:
795812
fail-fast: false
796813
matrix:
@@ -846,6 +863,7 @@ jobs:
846863
run: cmake --build build -t pytest
847864

848865
win32-debug:
866+
if: github.event.pull_request.draft == false
849867
strategy:
850868
fail-fast: false
851869
matrix:
@@ -897,6 +915,7 @@ jobs:
897915

898916

899917
windows-2022:
918+
if: github.event.pull_request.draft == false
900919
strategy:
901920
fail-fast: false
902921
matrix:
@@ -956,6 +975,7 @@ jobs:
956975
run: cmake --build build_partial --target pytest
957976

958977
mingw:
978+
if: github.event.pull_request.draft == false
959979
name: "🐍 3 • windows-latest • ${{ matrix.sys }}"
960980
runs-on: windows-latest
961981
defaults:
@@ -1055,6 +1075,7 @@ jobs:
10551075
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build3 --target test_cmake_build
10561076

10571077
windows_clang:
1078+
if: github.event.pull_request.draft == false
10581079

10591080
strategy:
10601081
matrix:
@@ -1124,6 +1145,7 @@ jobs:
11241145
run: git clean -fdx
11251146

11261147
macos_brew_install_llvm:
1148+
if: github.event.pull_request.draft == false
11271149
name: "macos-13 • brew install llvm"
11281150
runs-on: macos-13
11291151

.github/workflows/configure.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Config
33
on:
44
workflow_dispatch:
55
pull_request:
6+
types:
7+
- opened
8+
- synchronize
9+
- reopened
10+
- ready_for_review
611
push:
712
branches:
813
- master
@@ -16,6 +21,7 @@ jobs:
1621
# This tests various versions of CMake in various combinations, to make sure
1722
# the configure step passes.
1823
cmake:
24+
if: github.event.pull_request.draft == false
1925
strategy:
2026
fail-fast: false
2127
matrix:

0 commit comments

Comments
 (0)