瀏覽代碼

skip sqlite startup test on Python3.11

Falko Schindler 1 年之前
父節點
當前提交
502f93151a
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      test_startup.sh

+ 8 - 0
test_startup.sh

@@ -32,11 +32,19 @@ error=0
 check main.py || error=1
 for path in examples/*
 do
+    # skip if python is 3.11 and if path is examples/sqlite_database
+    if test $(python3 --version | cut -d' ' -f2 | cut -d'.' -f1,2) = "3.11" && test $path = "examples/sqlite_database"; then
+        continue # until https://github.com/omnilib/aiosqlite/issues/241 is fixed
+    fi
+    
+    # install all requirements except nicegui
     if test -f $path/requirements.txt; then
         sed '/^nicegui/d' $path/requirements.txt > $path/requirements.tmp.txt || error=1 # remove nicegui from requirements.txt
         python3 -m pip install -r $path/requirements.tmp.txt || error=1
         rm $path/requirements.tmp.txt || error=1
     fi
+
+    # run start.sh or main.py
     if test -f $path/start.sh; then
         check $path/start.sh dev || error=1
     elif test -f $path/main.py; then