Parcourir la source

try the node test directly

Steven Silvester il y a 5 ans
Parent
commit
38393b49e7
2 fichiers modifiés avec 2 ajouts et 7 suppressions
  1. 1 7
      examples/test_examples.py
  2. 1 0
      scripts/ci_script.sh

+ 1 - 7
examples/test_examples.py

@@ -42,13 +42,7 @@ def main():
 
     count = 0
     for path in sorted(paths):
-        if osp.basename(path) == 'node':
-            with tempfile.TemporaryDirectory() as cwd:
-                header(path)
-                runner = osp.join(path, 'main.py')
-                subprocess.check_call([sys.executable, runner], cwd=cwd)
-                count += 1
-        elif osp.exists(osp.join(path, 'main.py')):
+        if osp.exists(osp.join(path, 'main.py')):
             with tempfile.TemporaryDirectory() as cwd:
                 header(path)
                 runner = osp.join(here, 'example_check.py')

+ 1 - 0
scripts/ci_script.sh

@@ -184,6 +184,7 @@ if [[ $GROUP == usage ]]; then
     jlpm run build:examples
 
     # Test the examples
+    python packages/services/examples/node/main.py
     jlpm run test:examples
 
     # Make sure we can successfully load the dev app.