Skip to content

Commit 369fd83

Browse files
committed
ci/cd
1 parent ce9885e commit 369fd83

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
4040
- name: Test with pytest
4141
run: |
42-
pytest --cov=allocator --cov-report=xml --cov-report=term-missing
42+
pytest --cov=allocator --cov-report=xml --cov-report=term-missing -v
4343
4444
- name: Upload coverage to Codecov
4545
uses: codecov/codecov-action@v4

allocator/tests/test_cluster_kahip.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,17 @@
1717
ROADS = resource_filename(__name__, "chonburi-roads-50.csv")
1818

1919

20+
def kahip_available():
21+
"""Check if KaHIP dependencies are available"""
22+
try:
23+
import kahipwrapper
24+
return True
25+
except ImportError:
26+
return False
27+
28+
2029
@unittest.skipIf(os.name == 'nt', 'KaHIP not available on Windows')
30+
@unittest.skipIf(not kahip_available(), 'KaHIP dependencies not available')
2131
class TestClusterKaHIP(unittest.TestCase):
2232

2333
def setUp(self):

0 commit comments

Comments
 (0)