File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -98,17 +98,24 @@ 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 --no-cache --force-reinstall wheelhouse/opencv*.whl
104
109
cd ${{ github.workspace }}/tests
105
110
python${{ matrix.python-version }} get_build_info.py
106
111
- name : Run tests
107
112
run : |
113
+ source ${{ github.workspace }}/opencv_test/bin/activate
108
114
cd ${{ github.workspace }}/opencv
109
115
python${{ matrix.python-version }} modules/python/test/test.py -v --repo .
110
116
- name : Pylint test
111
117
run : |
118
+ source ${{ github.workspace }}/opencv_test/bin/activate
112
119
python${{ matrix.python-version }} -m pip install pylint==2.15.9
113
120
cd ${{ github.workspace }}/tests
114
121
python${{ matrix.python-version }} -m pylint $PYLINT_TEST_FILE
You can’t perform that action at this time.
0 commit comments