File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2121 with :
2222 python-version : ${{ matrix.python-version }}
2323
24- - name : Install package and dev dependencies
25- run : pip install -e ".[dev]"
24+ - name : Install package with all dependencies
25+ run : pip install -e ".[dev,analysis,viz,viz-interactive ]"
2626
2727 - name : Run tests
2828 run : python -m pytest tests/ -v --tb=short
Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ def test_from_function_all_same_value(self):
255255class TestAnalysisEdgeCases :
256256
257257 def test_betti_single_vertex (self ):
258+ pytest .importorskip ("scipy" )
258259 from knowledgecomplex .analysis import betti_numbers
259260 sb = SchemaBuilder (namespace = "test" )
260261 sb .add_vertex_type ("N" )
@@ -263,13 +264,15 @@ def test_betti_single_vertex(self):
263264 assert betti_numbers (kc ) == [1 , 0 , 0 ]
264265
265266 def test_betti_no_elements (self ):
267+ pytest .importorskip ("scipy" )
266268 from knowledgecomplex .analysis import betti_numbers
267269 sb = SchemaBuilder (namespace = "test" )
268270 sb .add_vertex_type ("N" )
269271 kc = KnowledgeComplex (schema = sb )
270272 assert betti_numbers (kc ) == [0 , 0 , 0 ]
271273
272274 def test_boundary_matrices_vertices_only (self ):
275+ pytest .importorskip ("scipy" )
273276 from knowledgecomplex .analysis import boundary_matrices
274277 sb = SchemaBuilder (namespace = "test" )
275278 sb .add_vertex_type ("N" )
You can’t perform that action at this time.
0 commit comments