Merge pull request #9329 from mr-raj12/add-workflow-path-filters

ci: add path filters to lint and codeql workflows, fixes #9328
This commit is contained in:
TW
2026-02-14 20:54:55 +01:00
committed by GitHub
2 changed files with 23 additions and 1 deletions
+11 -1
View File
@@ -3,7 +3,17 @@
name: Lint
on: [push, pull_request]
on:
push:
paths:
- '**.py'
- 'pyproject.toml'
- '.github/workflows/black.yaml'
pull_request:
paths:
- '**.py'
- 'pyproject.toml'
- '.github/workflows/black.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
+12
View File
@@ -5,9 +5,21 @@ name: "CodeQL"
on:
push:
branches: [ master ]
paths:
- '**.py'
- '**.pyx'
- '**.c'
- '**.h'
- '.github/workflows/codeql-analysis.yml'
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
paths:
- '**.py'
- '**.pyx'
- '**.c'
- '**.h'
- '.github/workflows/codeql-analysis.yml'
schedule:
- cron: '39 2 * * 5'