瀏覽代碼

ensure requirements are installed

Rodja Trappe 1 年之前
父節點
當前提交
fe6a12972b
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      test_startup.sh

+ 2 - 0
test_startup.sh

@@ -32,6 +32,8 @@ error=0
 check main.py || error=1
 for path in examples/*
 do
+    if test -f $path/requirements.txt; then
+        python3 -m pip install -r $path/requirements.txt || error=1 
     if test -f $path/start.sh; then
         check $path/start.sh dev || error=1 
     elif test -f $path/main.py; then