Skip to content

Commit 4453967

Browse files
authored
Optimize workflow triggers with path filters (#234)
1 parent 2038788 commit 4453967

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

.github/workflows/examples_test.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
name: Example-test
22

3-
on: [pull_request, workflow_dispatch, push]
3+
on:
4+
pull_request:
5+
paths:
6+
- 'dattri/**'
7+
- 'examples/**'
8+
- 'pyproject.toml'
9+
- 'setup.py'
10+
- '.github/workflows/examples_test.yml'
11+
push:
12+
paths:
13+
- 'dattri/**'
14+
- 'examples/**'
15+
- 'pyproject.toml'
16+
- 'setup.py'
17+
- '.github/workflows/examples_test.yml'
18+
workflow_dispatch:
419

520
jobs:
621
build:

.github/workflows/pytest.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
name: Unit-test
22

3-
on: [pull_request, workflow_dispatch, push]
3+
on:
4+
pull_request:
5+
paths:
6+
- 'dattri/**'
7+
- 'test/**'
8+
- 'pyproject.toml'
9+
- 'setup.py'
10+
- '.github/workflows/pytest.yml'
11+
push:
12+
paths:
13+
- 'dattri/**'
14+
- 'test/**'
15+
- 'pyproject.toml'
16+
- 'setup.py'
17+
- '.github/workflows/pytest.yml'
18+
workflow_dispatch:
419

520
jobs:
621
build:

0 commit comments

Comments
 (0)