From 89824bc705a2bb1bd3daa4cb68b57c1de19af2c4 Mon Sep 17 00:00:00 2001 From: Rayyan Ansari Date: Sun, 12 Mar 2023 15:35:32 +0000 Subject: [PATCH] Windows CI: only run when certain files are modified The Windows CI does not need to run when files such as docs are changed. --- .github/workflows/windows.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 505765b5..af4b0a8b 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -1,5 +1,29 @@ name: Windows CI -on: [push, pull_request] +on: + push: + branches: [ master ] + paths: + - '**.py' + - '**.pyx' + - '**.c' + - '**.h' + - '**.yml' + - '**.cfg' + - '**.ini' + - 'requirements.d/*' + - '!docs/**' + pull_request: + branches: [ master ] + paths: + - '**.py' + - '**.pyx' + - '**.c' + - '**.h' + - '**.yml' + - '**.cfg' + - '**.ini' + - 'requirements.d/*' + - '!docs/**' env: SETUPTOOLS_USE_DISTUTILS: stdlib # Needed for pip to work - https://www.msys2.org/docs/python/#known-issues