@@ -144,16 +144,19 @@ jobs:
144
144
- name : Set up Python
145
145
uses : actions/setup-python@v5
146
146
with :
147
- python-version : 3.10
147
+ python-version : " 3.10"
148
148
- name : Build Wheel
149
149
run : |
150
150
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
152
155
- name : Upload Wheel
153
156
uses : actions/upload-artifact@v4
154
157
with :
155
158
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 }}
157
160
retention-days : 1
158
161
159
162
docker-plugin :
@@ -180,9 +183,10 @@ jobs:
180
183
uses : actions/download-artifact@v4
181
184
with :
182
185
name : apache_skywalking.whl
183
- path : apache_skywalking.whl
186
+ path : .
184
187
- name : Build SkyWalking Python agent base plugin image
185
188
run : |
189
+ ls -alh
186
190
docker build --build-arg BASE_PYTHON_IMAGE -t apache/skywalking-python-agent:latest-plugin --no-cache . -f tests/plugin/Dockerfile.plugin
187
191
docker save -o docker-images-skywalking-python-plugin-${{ matrix.python-version }}.tar apache/skywalking-python-agent:latest-plugin
188
192
- name : Upload docker image with specific python version
@@ -236,9 +240,15 @@ jobs:
236
240
uses : actions/setup-python@v5
237
241
with :
238
242
python-version : ${{ matrix.python-version }}
243
+ - name : Download wheel
244
+ uses : actions/download-artifact@v4
245
+ with :
246
+ name : apache_skywalking.whl
247
+ path : .
239
248
- name : Run unit tests
240
249
run : |
241
- make env
250
+ make poetry
251
+ pip install $(ls apache_skywalking*.whl)[all]
242
252
poetry run pytest -v ${{ matrix.test-path }}
243
253
244
254
docker-e2e :
@@ -262,6 +272,11 @@ jobs:
262
272
with :
263
273
submodules : true
264
274
persist-credentials : false
275
+ - name : Download wheel
276
+ uses : actions/download-artifact@v4
277
+ with :
278
+ name : apache_skywalking.whl
279
+ path : .
265
280
- name : Build SkyWalking Python agent base e2e image
266
281
run : |
267
282
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