Browse Source

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 năm trước cách đây
mục cha
commit
89824bc705
1 tập tin đã thay đổi với 25 bổ sung1 xóa
  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