Skip to content

Commit 79eeb7c

Browse files
committed
chore: update GitHub Actions workflow to streamline testing paths
1 parent 0171533 commit 79eeb7c

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

.github/workflows/testing_matcher.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,20 @@ name: Testing Core Components
22
on:
33
pull_request:
44
paths:
5-
- "atom/**"
6-
- "itext2kg/graph_matching/**"
7-
- "itext2kg/ientities_extraction/**"
8-
- "itext2kg/irelations_extraction/**"
9-
- "itext2kg/itext2kg.py"
10-
- "itext2kg/itext2kg_star.py"
11-
- "itext2kg/models/**"
5+
- "itext2kg/**"
126
- "tests/**"
7+
- "requirements.txt"
8+
- "pyproject.toml"
9+
- "setup.cfg"
1310
push:
1411
branches:
1512
- "main"
1613
paths:
17-
- "atom/**"
18-
- "itext2kg/graph_matching/**"
19-
- "itext2kg/ientities_extraction/**"
20-
- "itext2kg/irelations_extraction/**"
21-
- "itext2kg/itext2kg.py"
22-
- "itext2kg/itext2kg_star.py"
23-
- "itext2kg/models/**"
14+
- "itext2kg/**"
2415
- "tests/**"
16+
- "requirements.txt"
17+
- "pyproject.toml"
18+
- "setup.cfg"
2519

2620
jobs:
2721
test:
@@ -66,9 +60,7 @@ jobs:
6660

6761
- name: Test import of main components
6862
run: |
69-
python -c "from itext2kg import iText2KG, iText2KG_Star; print('✅ iText2KG imports successful')"
70-
python -c "from itext2kg.graph_matching import Matcher; print('✅ iText2KG Matcher import successful')"
71-
python -c "from itext2kg.models import Entity, Relationship, KnowledgeGraph; print('✅ iText2KG Models import successful')"
72-
python -c "from atom import Atom; print('✅ Atom import successful')"
73-
python -c "from atom.models import Entity, Relationship, KnowledgeGraph; print('✅ Atom Models import successful')"
74-
python -c "from atom.graph_matching import GraphMatcher; print('✅ Atom Matcher import successful')"
63+
python -c "from itext2kg import Atom, iText2KG, iText2KG_Star; print('✅ Main components import successful')"
64+
python -c "from itext2kg.atom import GraphMatcher; print('✅ Atom GraphMatcher import successful')"
65+
python -c "from itext2kg.atom.models import Entity, Relationship, KnowledgeGraph; print('✅ Atom Models import successful')"
66+
python -c "from itext2kg.itext2kg_star.models import Entity, Relationship, KnowledgeGraph; print('✅ iText2KG Models import successful')"

0 commit comments

Comments
 (0)