Skip to content

Commit

Permalink
Fixed workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanKrMahato committed Dec 11, 2024
1 parent c5ca503 commit a7fee6b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,14 @@ jobs:
shell: cmd
run: |
metacall pip install -r test/requirements.txt | findstr "Successfully installed"
metacall pip uninstall numpy --yes
IF %ERRORLEVEL% NEQ 0 exit /B 1
metacall pip uninstall numpy --yes | findstr "Successfully uninstalled"
IF %ERRORLEVEL% NEQ 0 exit /B 1
metacall pip install numpy==1.21.6 | findstr "Successfully installed"
IF %ERRORLEVEL% NEQ 0 exit /B 1
metacall ./test/requirements.py | findstr "123456" && findstr "3.4.11"
IF %ERRORLEVEL% NEQ 0 exit /B 1
- name: Install Numpy
shell: cmd
run: |
metacall pip install numpy==1.21.6
- name: Test requirements.py
shell: cmd
run: |
metacall ./test/requirements.py | findstr "3.4.11"
- name: Deploy & FaaS Test
shell: cmd
run: |
Expand Down Expand Up @@ -102,9 +98,13 @@ jobs:
- name: Python Test
shell: cmd
run: |
metacall pip install -r test/requirements.txt
metacall pip install -r test/requirements.txt | findstr "Successfully installed"
IF %ERRORLEVEL% NEQ 0 exit /B 1
metacall pip uninstall numpy --yes | findstr "Successfully uninstalled"
IF %ERRORLEVEL% NEQ 0 exit /B 1
metacall ./test/requirements.py
metacall pip install numpy==1.21.6 | findstr "Successfully installed"
IF %ERRORLEVEL% NEQ 0 exit /B 1
metacall ./test/requirements.py | findstr "123456" && findstr "3.4.11"
IF %ERRORLEVEL% NEQ 0 exit /B 1
- name: Deploy & FaaS Test
Expand Down Expand Up @@ -169,9 +169,13 @@ jobs:
- name: Python Test
shell: cmd
run: |
metacall pip install -r test/requirements.txt
metacall pip install -r test/requirements.txt | findstr "Successfully installed"
IF %ERRORLEVEL% NEQ 0 exit /B 1
metacall ./test/requirements.py
metacall pip uninstall numpy --yes | findstr "Successfully uninstalled"
IF %ERRORLEVEL% NEQ 0 exit /B 1
metacall pip install numpy==1.21.6 | findstr "Successfully installed"
IF %ERRORLEVEL% NEQ 0 exit /B 1
metacall ./test/requirements.py | findstr "123456" && findstr "3.4.11"
IF %ERRORLEVEL% NEQ 0 exit /B 1
- name: Deploy & FaaS Test
Expand Down Expand Up @@ -203,4 +207,4 @@ jobs:
Write-Error "MetaCall binary is still available"
exit 2
}
Write-Output "Uninstall verification passed."
Write-Output "Uninstall verification passed."
2 changes: 1 addition & 1 deletion test/requirements.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import certifi
import cv2
print(cv2.__version__)
print("OpenCV-Version ",cv2.__version__)
print('123456')

0 comments on commit a7fee6b

Please sign in to comment.