Skip to content

Commit 327a015

Browse files
committed
Limit test and lint workflows to relevant file changes
1 parent 2371ab9 commit 327a015

2 files changed

Lines changed: 44 additions & 2 deletions

File tree

‎.github/workflows/lint.yml‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
name: Lint and type check
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
paths:
6+
- 'src/**'
7+
- 'tests/**'
8+
- 'scripts/**'
9+
- 'pyproject.toml'
10+
- 'Makefile'
11+
- '.flake8'
12+
- '.gitignore'
13+
- '.github/workflows/lint.yml'
14+
pull_request:
15+
paths:
16+
- 'src/**'
17+
- 'tests/**'
18+
- 'scripts/**'
19+
- 'pyproject.toml'
20+
- 'Makefile'
21+
- '.flake8'
22+
- '.gitignore'
23+
- '.github/workflows/lint.yml'
24+
workflow_dispatch:
425

526
permissions:
627
contents: read

‎.github/workflows/tests.yml‎

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
name: Test and package
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
paths:
5+
- 'src/**'
6+
- 'tests/**'
7+
- 'scripts/**'
8+
- 'pyproject.toml'
9+
- 'Makefile'
10+
- 'README.md'
11+
- 'LICENSE'
12+
- '.github/workflows/tests.yml'
13+
pull_request:
14+
paths:
15+
- 'src/**'
16+
- 'tests/**'
17+
- 'scripts/**'
18+
- 'pyproject.toml'
19+
- 'Makefile'
20+
- 'README.md'
21+
- 'LICENSE'
22+
- '.github/workflows/tests.yml'
23+
workflow_dispatch:
324
permissions:
425
contents: read
526
jobs:

0 commit comments

Comments
 (0)