

ci: limit when GHA jobs run
@094eea2dd7ff42a1c9099ff194584f7cc6d41313
--- .github/workflows/lint.yaml
+++ .github/workflows/lint.yaml
... | ... | @@ -4,7 +4,17 @@ |
4 | 4 |
push: |
5 | 5 |
branches: |
6 | 6 |
- master |
7 |
+ paths: |
|
8 |
+ - "src/**" |
|
9 |
+ - "scripts/**" |
|
10 |
+ - "tests/**" |
|
11 |
+ - ".github/workflows/lint.yaml" |
|
7 | 12 |
pull_request: |
13 |
+ paths: |
|
14 |
+ - "src/**" |
|
15 |
+ - "scripts/**" |
|
16 |
+ - "tests/**" |
|
17 |
+ - ".github/workflows/lint.yaml" |
|
8 | 18 |
jobs: |
9 | 19 |
ruff: |
10 | 20 |
runs-on: ubuntu-latest |
--- .github/workflows/test.yaml
+++ .github/workflows/test.yaml
... | ... | @@ -4,7 +4,15 @@ |
4 | 4 |
push: |
5 | 5 |
branches: |
6 | 6 |
- master |
7 |
+ paths: |
|
8 |
+ - "src/**" |
|
9 |
+ - "tests/**" |
|
10 |
+ - ".github/workflows/test.yaml" |
|
7 | 11 |
pull_request: |
12 |
+ paths: |
|
13 |
+ - "src/**" |
|
14 |
+ - "tests/**" |
|
15 |
+ - ".github/workflows/test.yaml" |
|
8 | 16 |
jobs: |
9 | 17 |
pytest: |
10 | 18 |
strategy: |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?