@@ -67,33 +67,11 @@ jobs:
6767 name : wheels
6868 path : wheelhouse/opencv*.whl
6969
70- - name : Saving opencv-python wheels
71- if : ${{ matrix.without_gui == 0 && matrix.with_contrib == 0 }}
70+ - name : Saving a wheel accordingly to matrix
7271 uses : actions/upload-artifact@v2
7372 with :
74- name : opencv-python-wheels
75- path : wheelhouse/opencv_python-*.whl
76-
77- - name : Saving opencv-python-headless wheels
78- if : ${{ matrix.without_gui == 1 && matrix.with_contrib == 0 }}
79- uses : actions/upload-artifact@v2
80- with :
81- name : opencv-python-headless-wheels
82- path : wheelhouse/opencv_python_headless-*.whl
83-
84- - name : Saving opencv-contrib-python wheels
85- if : ${{ matrix.without_gui == 0 && matrix.with_contrib == 1 }}
86- uses : actions/upload-artifact@v2
87- with :
88- name : opencv-contrib-python-wheels
89- path : wheelhouse/opencv_contrib_python-*.whl
90-
91- - name : Saving opencv-contrib-python-headless wheels
92- if : ${{ matrix.without_gui == 1 && matrix.with_contrib == 1 }}
93- uses : actions/upload-artifact@v2
94- with :
95- name : opencv-contrib-python-headless-wheels
96- path : wheelhouse/opencv_contrib_python_headless-*.whl
73+ name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
74+ path : wheelhouse/opencv*.whl
9775
9876 test :
9977 needs : [build]
@@ -130,32 +108,10 @@ jobs:
130108 - name : Setup Environment variables
131109 run : if [ "3.10" == "${{ matrix.python-version }}" ]; then echo "TEST_DEPENDS=$(echo $NP_TEST_DEP_LATEST)" >> $GITHUB_ENV; else echo "TEST_DEPENDS=$(echo $NP_TEST_DEP)" >> $GITHUB_ENV; fi
132110
133- - name : Download opencv-python wheels
134- if : ${{ matrix.without_gui == 0 && matrix.with_contrib == 0 }}
135- uses : actions/download-artifact@v2
136- with :
137- name : opencv-python-wheels
138- path : wheelhouse/
139-
140- - name : Download opencv-python-headless wheels
141- if : ${{ matrix.without_gui == 1 && matrix.with_contrib == 0 }}
142- uses : actions/download-artifact@v2
143- with :
144- name : opencv-python-headless-wheels
145- path : wheelhouse/
146-
147- - name : Download opencv-contrib-python wheels
148- if : ${{ matrix.without_gui == 0 && matrix.with_contrib == 1 }}
149- uses : actions/download-artifact@v2
150- with :
151- name : opencv-contrib-python-wheels
152- path : wheelhouse/
153-
154- - name : Download opencv-contrib-python-headless wheels
155- if : ${{ matrix.without_gui == 1 && matrix.with_contrib == 1 }}
111+ - name : Download a wheel accordingly to matrix
156112 uses : actions/download-artifact@v2
157113 with :
158- name : opencv-contrib-python-headless-wheels
114+ name : wheel-${{ matrix.with_contrib }}-${{ matrix.without_gui }}-${{ matrix.build_sdist }}
159115 path : wheelhouse/
160116
161117 - name : Package installation and run tests
0 commit comments