Răsfoiți Sursa

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 ani în urmă
părinte
comite
89824bc705
1 a modificat fișierele cu 25 adăugiri și 1 ștergeri
  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