Skip to content

Commit 44629c2

Browse files
committed
Fix pytest problem in windows build
1 parent 1f66521 commit 44629c2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/windows_noetic_build.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ jobs:
2323
- name: Build
2424
shell: cmd
2525
run: |
26-
C:/opt/ros/noetic/x64/python.exe -m pip uninstall pytest-rerunfailures
2726
choco sources add -n=roswin -s https://aka.ms/ros/public --priority 1
27+
if %errorlevel% neq 0 exit /b %errorlevel%
2828
choco install ros-%ROS_DISTRO%-desktop_full -y --no-progress
29+
if %errorlevel% neq 0 exit /b %errorlevel%
2930
choco install swig
31+
C:/opt/ros/noetic/x64/python.exe -m pip uninstall pytest-rerunfailures
32+
if %errorlevel% neq 0 exit /b %errorlevel%
3033
3134
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=amd64 -host_arch=amd64
3235
call "C:\opt\ros\%ROS_DISTRO%\x64\setup.bat"
@@ -36,10 +39,14 @@ jobs:
3639
rosdep update
3740
3841
vcs import --input "${{ github.workspace }}/src/tesseract_python/dependencies_with_ext.rosinstall" src/
42+
if %errorlevel% neq 0 exit /b %errorlevel%
3943
4044
rosdep install -q --from-paths . --ignore-src -y
45+
if %errorlevel% neq 0 exit /b %errorlevel%
4146
4247
catkin_make_isolated --install --use-ninja --force-cmake --only-pkg-with-deps tesseract_python --cmake-args -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=C:/opt/ros/noetic/x64/python.exe -DPYTHON_LIBRARY=C:/opt/ros/noetic/x64/Lib/python38.lib -DINSTALL_OMPL=ON -DINSTALL_OMPL_TAG=master -DBUILD_IPOPT=OFF -DBUILD_SNOPT=OFF -DINSTALL_FCL=ON -DINSTALL_BULLET=ON -DNO_OPENCL=ON
48+
if %errorlevel% neq 0 exit /b %errorlevel%
4349
call "%CD%\install_isolated\setup.bat"
4450
set TESSERACT_SUPPORT_DIR=%CD%\src\tesseract\tesseract_support
4551
C:/opt/ros/noetic/x64/python.exe -m pytest src\tesseract_python\tesseract_python
52+
if %errorlevel% neq 0 exit /b %errorlevel%

0 commit comments

Comments
 (0)