From 2714d4e314afee4ad2b492daa0f14a2c3205f8d5 Mon Sep 17 00:00:00 2001 From: Ankith Date: Fri, 6 Jun 2025 15:46:55 +0530 Subject: [PATCH 1/3] Never skip important CI on non-source changes --- .github/workflows/build-macos.yml | 21 +-------------------- .github/workflows/build-manylinux.yml | 21 +-------------------- .github/workflows/build-ubuntu-sdist.yml | 21 +-------------------- .github/workflows/build-windows.yml | 21 +-------------------- 4 files changed, 4 insertions(+), 80 deletions(-) diff --git a/.github/workflows/build-macos.yml b/.github/workflows/build-macos.yml index 9f5acaa5cc..7f4a007931 100644 --- a/.github/workflows/build-macos.yml +++ b/.github/workflows/build-macos.yml @@ -1,32 +1,13 @@ name: macOS # Run CI only when a release is created, on changes to main branch, or any PR -# to main. Do not run CI on any other branch. Also, skip any non-source changes -# from running on CI +# to main. on: push: branches: main - paths-ignore: - - 'docs/**' - - 'examples/**' - - '.gitignore' - - '*.rst' - - '*.md' - - '.github/workflows/*.yml' - # re-include current file to not be excluded - - '!.github/workflows/build-macos.yml' pull_request: branches: main - paths-ignore: - - 'docs/**' - - 'examples/**' - - '.gitignore' - - '*.rst' - - '*.md' - - '.github/workflows/*.yml' - # re-include current file to not be excluded - - '!.github/workflows/build-macos.yml' # the github release drafter can call this workflow workflow_call: diff --git a/.github/workflows/build-manylinux.yml b/.github/workflows/build-manylinux.yml index 0421e63163..bf05a982de 100644 --- a/.github/workflows/build-manylinux.yml +++ b/.github/workflows/build-manylinux.yml @@ -1,32 +1,13 @@ name: ManyLinux # Run CI only when a release is created, on changes to main branch, or any PR -# to main. Do not run CI on any other branch. Also, skip any non-source changes -# from running on CI +# to main. on: push: branches: main - paths-ignore: - - 'docs/**' - - 'examples/**' - - '.gitignore' - - '*.rst' - - '*.md' - - '.github/workflows/*.yml' - # re-include current file to not be excluded - - '!.github/workflows/build-manylinux.yml' pull_request: branches: main - paths-ignore: - - 'docs/**' - - 'examples/**' - - '.gitignore' - - '*.rst' - - '*.md' - - '.github/workflows/*.yml' - # re-include current file to not be excluded - - '!.github/workflows/build-manylinux.yml' # the github release drafter can call this workflow workflow_call: diff --git a/.github/workflows/build-ubuntu-sdist.yml b/.github/workflows/build-ubuntu-sdist.yml index 64ec5ef716..d5123e7ede 100644 --- a/.github/workflows/build-ubuntu-sdist.yml +++ b/.github/workflows/build-ubuntu-sdist.yml @@ -8,32 +8,13 @@ name: Ubuntu sdist # Run CI only when a release is created, on changes to main branch, or any PR -# to main. Do not run CI on any other branch. Also, skip any non-source changes -# from running on CI +# to main. on: push: branches: main - paths-ignore: - - 'docs/**' - - 'examples/**' - - '.gitignore' - - '*.rst' - - '*.md' - - '.github/workflows/*.yml' - # re-include current file to not be excluded - - '!.github/workflows/build-ubuntu-sdist.yml' pull_request: branches: main - paths-ignore: - - 'docs/**' - - 'examples/**' - - '.gitignore' - - '*.rst' - - '*.md' - - '.github/workflows/*.yml' - # re-include current file to not be excluded - - '!.github/workflows/build-ubuntu-sdist.yml' # the github release drafter can call this workflow workflow_call: diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 3fc0f9b206..abdf3c099b 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -1,32 +1,13 @@ name: Windows # Run CI only when a release is created, on changes to main branch, or any PR -# to main. Do not run CI on any other branch. Also, skip any non-source changes -# from running on CI +# to main. on: push: branches: main - paths-ignore: - - 'docs/**' - - 'examples/**' - - '.gitignore' - - '*.rst' - - '*.md' - - '.github/workflows/*.yml' - # re-include current file to not be excluded - - '!.github/workflows/build-windows.yml' pull_request: branches: main - paths-ignore: - - 'docs/**' - - 'examples/**' - - '.gitignore' - - '*.rst' - - '*.md' - - '.github/workflows/*.yml' - # re-include current file to not be excluded - - '!.github/workflows/build-windows.yml' # the github release drafter can call this workflow workflow_call: From e50bde79e02b54aee6e3bff7ec2bccdb9e1f6bbf Mon Sep 17 00:00:00 2001 From: Ankith Date: Fri, 6 Jun 2025 15:50:22 +0530 Subject: [PATCH 2/3] Re exclude tutorials in release wheels --- docs/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/meson.build b/docs/meson.build index 81416b0216..9b46b42c84 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -1,9 +1,13 @@ if fs.is_dir('generated') # TODO: remove everything in exclude_directories except for 'doctrees' + # These should probably go in a separate package that the main pygame-ce + # package can depend on as optional extras + # https://github.com/pygame-community/pygame-ce/issues/3468 install_subdir( 'generated', exclude_directories: [ 'doctrees', + 'tutorials', '_sources/tutorials', '_sources/c_api', ], From 54fbba67fd06b77d347735d7a924e353b25eaa01 Mon Sep 17 00:00:00 2001 From: Ankith Date: Fri, 6 Jun 2025 16:45:37 +0530 Subject: [PATCH 3/3] Exclude only korean tutorials in release wheels --- docs/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/meson.build b/docs/meson.build index 9b46b42c84..d9ec3650f8 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -7,7 +7,7 @@ if fs.is_dir('generated') 'generated', exclude_directories: [ 'doctrees', - 'tutorials', + 'tutorials/ko', '_sources/tutorials', '_sources/c_api', ],