diff --git a/.github/workflows/test-windows.yml b/.github/workflows/test-windows.yml index f52d23c..e31925e 100644 --- a/.github/workflows/test-windows.yml +++ b/.github/workflows/test-windows.yml @@ -18,21 +18,26 @@ jobs: METACALL_INSTALL_DEBUG: 1 run: | powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1 - - name: NodeJS Test shell: cmd run: | metacall ./test/script.js | findstr "123456" IF %ERRORLEVEL% NEQ 0 exit /B 1 - - name: Python Test shell: cmd run: | metacall pip install -r test/requirements.txt | findstr "Successfully installed" - IF %ERRORLEVEL% NEQ 0 exit /B 1 - metacall ./test/requirements.py | findstr "123456" - IF %ERRORLEVEL% NEQ 0 exit /B 1 - + metacall pip uninstall numpy --yes + - name: Install Numpy + shell: cmd + run: | + metacall pip install numpy==1.21.6 + + - name: Test requirements.py + shell: cmd + run: | + metacall ./test/requirements.py + - name: Deploy & FaaS Test shell: cmd run: | @@ -40,14 +45,12 @@ jobs: IF %ERRORLEVEL% NEQ 0 exit /B 1 metacall faas --version | findstr /R "^v.*\..*\..*" IF %ERRORLEVEL% NEQ 0 exit /B 1 - - name: Uninstall MetaCall shell: cmd env: METACALL_INSTALL_DEBUG: 1 run: | powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1 -Uninstall - - name: Uninstall Test shell: pwsh run: | @@ -63,7 +66,6 @@ jobs: exit 2 } Write-Output "Uninstall verification passed." - install-from-path: name: Install MetaCall via Path Installation runs-on: windows-latest @@ -77,28 +79,24 @@ jobs: $version = $redirectUri.Segments[$redirectUri.Segments.Count - 1] $url = "https://github.com/metacall/distributable-windows/releases/download/$version/metacall-tarball-win-x64.zip" Invoke-WebRequest $url -OutFile metacall-tarball-win-x64.zip - - name: Install MetaCall shell: cmd env: METACALL_INSTALL_DEBUG: 1 run: | powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1 -FromPath metacall-tarball-win-x64.zip - - name: NodeJS Test shell: cmd run: | metacall ./test/script.js | findstr "123456" IF %ERRORLEVEL% NEQ 0 exit /B 1 - - name: Python Test shell: cmd run: | - metacall pip install -r test/requirements.txt | findstr "Successfully installed" + metacall pip install -r test/requirements.txt IF %ERRORLEVEL% NEQ 0 exit /B 1 - metacall ./test/requirements.py | findstr "123456" + metacall ./test/requirements.py IF %ERRORLEVEL% NEQ 0 exit /B 1 - - name: Deploy & FaaS Test shell: cmd run: | @@ -106,14 +104,12 @@ jobs: IF %ERRORLEVEL% NEQ 0 exit /B 1 metacall faas --version | findstr /R "^v.*\..*\..*" IF %ERRORLEVEL% NEQ 0 exit /B 1 - - name: Uninstall MetaCall shell: cmd env: METACALL_INSTALL_DEBUG: 1 run: | powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1 -Uninstall - - name: Uninstall Test shell: pwsh run: | @@ -129,7 +125,6 @@ jobs: exit 2 } Write-Output "Uninstall verification passed." - install-path-with-whitespaces: name: Install MetaCall via Path With Whitespaces runs-on: windows-latest @@ -139,33 +134,28 @@ jobs: shell: cmd run: | mkdir "install folder with spaces" - - name: Install MetaCall shell: cmd env: METACALL_INSTALL_DEBUG: 1 run: | powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1 -InstallDir '%cd%\install folder with spaces' - - name: Install Test shell: cmd run: | dir "%cd%\install folder with spaces" - - name: NodeJS Test shell: cmd run: | metacall ./test/script.js | findstr "123456" IF %ERRORLEVEL% NEQ 0 exit /B 1 - - name: Python Test shell: cmd run: | - metacall pip install -r test/requirements.txt | findstr "Successfully installed" + metacall pip install -r test/requirements.txt IF %ERRORLEVEL% NEQ 0 exit /B 1 - metacall ./test/requirements.py | findstr "123456" + metacall ./test/requirements.py IF %ERRORLEVEL% NEQ 0 exit /B 1 - - name: Deploy & FaaS Test shell: cmd run: | @@ -173,14 +163,12 @@ jobs: IF %ERRORLEVEL% NEQ 0 exit /B 1 metacall faas --version | findstr /R "^v.*\..*\..*" IF %ERRORLEVEL% NEQ 0 exit /B 1 - - name: Uninstall MetaCall shell: cmd env: METACALL_INSTALL_DEBUG: 1 run: | powershell -NoProfile -ExecutionPolicy unrestricted ./install.ps1 -Uninstall -InstallDir '%cd%\install folder with spaces' - - name: Uninstall Test shell: pwsh run: | @@ -195,4 +183,4 @@ jobs: Write-Error "MetaCall binary is still available" exit 2 } - Write-Output "Uninstall verification passed." + Write-Output "Uninstall verification passed." \ No newline at end of file diff --git a/test/requirements.py b/test/requirements.py index dd530f0..15e2cbb 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -1,2 +1,4 @@ import certifi +import cv2 +print("OpenCV-Version ",cv2.__version__) print('123456') diff --git a/test/requirements.txt b/test/requirements.txt index 8f8d132..0eca90d 100644 --- a/test/requirements.txt +++ b/test/requirements.txt @@ -1 +1,2 @@ certifi==2024.7.4 +opencv-contrib-python==3.4.11.45 \ No newline at end of file