ci: add paths to python ci job
Adding path to the 'on' field will make it so this workflow is triggered
only when changed files are in the list of paths specified.
name: python static analysis
-on: push
+on:
+ push:
+ paths:
+ - 'python/**'
+ - 'tools/extra/fpgabist/**'
+ - 'tools/extra/packager/*.py'
+ - 'tools/extra/packager/metadata/**'
+ - 'tools/extra/packager/test/*.py'
+ - 'tools/extra/pac_hssi_config/*.py'
+ - 'tools/extra/fpgadiag/**'
+ - 'tools/utilities/**'
+ - 'platforms/scripts/platmgr/**'
+ - '.github/workflows/python-static-analysis.yml'
jobs:
analyze:
