Skip to content

Commit 3a4680c

Browse files
committed
Disable import all module test in CI
1 parent db8e720 commit 3a4680c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/test_imports.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import os
12
import sys
23
import unittest
34
import OCCT
45
from os.path import abspath, dirname, split, splitext
56
from glob import glob
67

78
class Test_ModulesImport(unittest.TestCase):
9+
10+
@unittest.skipIf("CI" in os.environ, "Disabled in CI")
811
def testModulesImport(self):
912
errors = []
1013
root = OCCT.__path__[0]
@@ -27,8 +30,9 @@ def testModulesImport(self):
2730

2831
for mod in mods:
2932
try:
33+
print(f"Importing {mod}...")
3034
__import__(mod)
31-
print(f"Import {mod} ok")
35+
print(f"OK")
3236
except ImportError as e:
3337
if "Vtk" in mod or "OCCT.step" in mod:
3438
pass # Ignore

0 commit comments

Comments
 (0)