Sfoglia il codice sorgente

ensure requirements are installed

Rodja Trappe 1 anno fa
parent
commit
fe6a12972b
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      test_startup.sh

+ 2 - 0
test_startup.sh

@@ -32,6 +32,8 @@ error=0
 check main.py || error=1
 check main.py || error=1
 for path in examples/*
 for path in examples/*
 do
 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
     if test -f $path/start.sh; then
         check $path/start.sh dev || error=1 
         check $path/start.sh dev || error=1 
     elif test -f $path/main.py; then
     elif test -f $path/main.py; then