瀏覽代碼

Windows CI: only run when certain files are modified

The Windows CI does not need to run when files such as docs are
changed.
Rayyan Ansari 2 年之前
父節點
當前提交
89824bc705
共有 1 個文件被更改,包括 25 次插入1 次删除
  1. 25 1
      .github/workflows/windows.yml

+ 25 - 1
.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