Windows CI: only run when certain files are modified

The Windows CI does not need to run when files such as docs are
changed.
This commit is contained in:
Rayyan Ansari 2023-03-12 15:35:32 +00:00
parent 5e85d043fd
commit 89824bc705
No known key found for this signature in database
GPG Key ID: 46A8D18E5BC49D84
1 changed files with 25 additions and 1 deletions

View File

@ -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