@@ -144,16 +144,19 @@ jobs:
144144 - name : Set up Python
145145 uses : actions/setup-python@v5
146146 with :
147- python-version : 3.10
147+ python-version : " 3.10"
148148 - name : Build Wheel
149149 run : |
150150 make env
151- make wheel
151+ make package
152+ - id : get-path
153+ run : |
154+ echo "path=./dist/apache_skywalking-$(poetry version | sed 's/apache-skywalking //g')-py3-none-any.whl" >> $GITHUB_OUTPUT
152155 - name : Upload Wheel
153156 uses : actions/upload-artifact@v4
154157 with :
155158 name : apache_skywalking.whl
156- path : dist/apache_skywalking-$(poetry version | sed 's/apache-skywalking //g')-py3-none-any.whl
159+ path : ${{ steps.get-path.outputs.path }}
157160 retention-days : 1
158161
159162 docker-plugin :
@@ -180,9 +183,10 @@ jobs:
180183 uses : actions/download-artifact@v4
181184 with :
182185 name : apache_skywalking.whl
183- path : apache_skywalking.whl
186+ path : .
184187 - name : Build SkyWalking Python agent base plugin image
185188 run : |
189+ ls -alh
186190 docker build --build-arg BASE_PYTHON_IMAGE -t apache/skywalking-python-agent:latest-plugin --no-cache . -f tests/plugin/Dockerfile.plugin
187191 docker save -o docker-images-skywalking-python-plugin-${{ matrix.python-version }}.tar apache/skywalking-python-agent:latest-plugin
188192 - name : Upload docker image with specific python version
@@ -236,9 +240,15 @@ jobs:
236240 uses : actions/setup-python@v5
237241 with :
238242 python-version : ${{ matrix.python-version }}
243+ - name : Download wheel
244+ uses : actions/download-artifact@v4
245+ with :
246+ name : apache_skywalking.whl
247+ path : .
239248 - name : Run unit tests
240249 run : |
241- make env
250+ make poetry
251+ pip install $(ls apache_skywalking*.whl)[all]
242252 poetry run pytest -v ${{ matrix.test-path }}
243253
244254 docker-e2e :
@@ -262,6 +272,11 @@ jobs:
262272 with :
263273 submodules : true
264274 persist-credentials : false
275+ - name : Download wheel
276+ uses : actions/download-artifact@v4
277+ with :
278+ name : apache_skywalking.whl
279+ path : .
265280 - name : Build SkyWalking Python agent base e2e image
266281 run : |
267282 docker build --build-arg BASE_PYTHON_IMAGE -t apache/skywalking-python-agent:latest-e2e --no-cache . -f tests/e2e/base/Dockerfile.e2e
0 commit comments