File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,25 @@ jobs:
9898 with :
9999 name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
100100 path : wheelhouse/
101+ - name : Create Venv for test
102+ run : |
103+ test -d "${{ github.workspace }}/opencv_test" && rm -rf "${{ github.workspace }}/opencv_test"
104+ python${{ matrix.python-version }} -m venv ${{ github.workspace }}/opencv_test
101105 - name : Package installation
102106 run : |
103- python${{ matrix.python-version }} -m pip install --user --no-cache --force-reinstall wheelhouse/opencv*.whl
107+ source ${{ github.workspace }}/opencv_test/bin/activate
108+ python${{ matrix.python-version }} -m pip install --upgrade pip
109+ python${{ matrix.python-version }} -m pip install --no-cache --force-reinstall wheelhouse/opencv*.whl
104110 cd ${{ github.workspace }}/tests
105111 python${{ matrix.python-version }} get_build_info.py
106112 - name : Run tests
107113 run : |
114+ source ${{ github.workspace }}/opencv_test/bin/activate
108115 cd ${{ github.workspace }}/opencv
109116 python${{ matrix.python-version }} modules/python/test/test.py -v --repo .
110117 - name : Pylint test
111118 run : |
119+ source ${{ github.workspace }}/opencv_test/bin/activate
112120 python${{ matrix.python-version }} -m pip install pylint==2.15.9
113121 cd ${{ github.workspace }}/tests
114122 python${{ matrix.python-version }} -m pylint $PYLINT_TEST_FILE
You can’t perform that action at this time.
0 commit comments