File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,25 @@ jobs:
98
98
with :
99
99
name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
100
100
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
101
105
- name : Package installation
102
106
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
104
110
cd ${{ github.workspace }}/tests
105
111
python${{ matrix.python-version }} get_build_info.py
106
112
- name : Run tests
107
113
run : |
114
+ source ${{ github.workspace }}/opencv_test/bin/activate
108
115
cd ${{ github.workspace }}/opencv
109
116
python${{ matrix.python-version }} modules/python/test/test.py -v --repo .
110
117
- name : Pylint test
111
118
run : |
119
+ source ${{ github.workspace }}/opencv_test/bin/activate
112
120
python${{ matrix.python-version }} -m pip install pylint==2.15.9
113
121
cd ${{ github.workspace }}/tests
114
122
python${{ matrix.python-version }} -m pylint $PYLINT_TEST_FILE
You can’t perform that action at this time.
0 commit comments