Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
89824bc705
Modificáronse 1 ficheiros con 25 adicións e 1 borrados
  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