Skip to content

Commit 94a8892

Browse files
committed
fix analysis dependencies
1 parent 851d543 commit 94a8892

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
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

tests/test_stress.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ def test_from_function_all_same_value(self):
255255
class 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")

0 commit comments

Comments
 (0)