Skip to content

Commit 4e35c37

Browse files
Merge pull request #9329 from mr-raj12/add-workflow-path-filters
ci: add path filters to lint and codeql workflows, fixes #9328
2 parents 40dcfe4 + 802ec2f commit 4e35c37

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/black.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,17 @@
33

44
name: Lint
55

6-
on: [push, pull_request]
6+
on:
7+
push:
8+
paths:
9+
- '**.py'
10+
- 'pyproject.toml'
11+
- '.github/workflows/black.yaml'
12+
pull_request:
13+
paths:
14+
- '**.py'
15+
- 'pyproject.toml'
16+
- '.github/workflows/black.yaml'
717

818
concurrency:
919
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}

.github/workflows/codeql-analysis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@ name: "CodeQL"
55
on:
66
push:
77
branches: [ master ]
8+
paths:
9+
- '**.py'
10+
- '**.pyx'
11+
- '**.c'
12+
- '**.h'
13+
- '.github/workflows/codeql-analysis.yml'
814
pull_request:
915
# The branches below must be a subset of the branches above
1016
branches: [ master ]
17+
paths:
18+
- '**.py'
19+
- '**.pyx'
20+
- '**.c'
21+
- '**.h'
22+
- '.github/workflows/codeql-analysis.yml'
1123
schedule:
1224
- cron: '39 2 * * 5'
1325

0 commit comments

Comments
 (0)