Skip to content

Commit 3b92112

Browse files
committed
Run unittest only when there is a code change
The unittest workflow is very expensive. Try to limit the triggers. Only run the workflow when there is a change in Python code or in relevant configuration file.
1 parent 9eb5c31 commit 3b92112

1 file changed

Lines changed: 28 additions & 6 deletions

File tree

.github/workflows/unittest.yml

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,37 @@ name: Unit test
55

66
on:
77
push:
8-
paths-ignore:
9-
- '**.md'
10-
- 'docs/**'
8+
paths:
9+
- ".github/workflows/**"
10+
- "bin/**"
11+
- "build_tools/**"
12+
- "pythainlp/**"
13+
- "requirements/**"
14+
- "tests/**"
15+
- "Makefile"
16+
- "MANIFEST.in"
17+
- "pyproject.toml"
18+
- "requirements.txt"
19+
- "setup.cfg"
20+
- "setup.py"
21+
- "tox.ini"
1122
pull_request:
1223
branches:
1324
- dev
14-
paths-ignore:
15-
- '**.md'
16-
- 'docs/**'
25+
paths:
26+
- ".github/workflows/**"
27+
- "bin/**"
28+
- "build_tools/**"
29+
- "pythainlp/**"
30+
- "requirements/**"
31+
- "tests/**"
32+
- "Makefile"
33+
- "MANIFEST.in"
34+
- "pyproject.toml"
35+
- "requirements.txt"
36+
- "setup.cfg"
37+
- "setup.py"
38+
- "tox.ini"
1739

1840
jobs:
1941
unittest:

0 commit comments

Comments
 (0)