@@ -36,11 +36,15 @@ jobs:
3636 runs-on : ubuntu-latest
3737 steps :
3838 - name : Checkout source codes
39- uses : actions/checkout@v3
39+ uses : actions/checkout@v4
4040 with :
4141 submodules : true
4242 - name : Check License
4343 uses : apache/skywalking-eyes/header@501a28d2fb4a9b962661987e50cf0219631b32ff
44+ - name : Set up Python
45+ uses : actions/setup-python@v5
46+ with :
47+ python-version : 3.8
4448 - name : Lint codes
4549 run : |
4650 make poetry
5458 runs-on : ubuntu-latest
5559 steps :
5660 - name : Checkout source codes
57- uses : actions/checkout@v3
61+ uses : actions/checkout@v4
5862 with :
5963 submodules : true
64+ - name : Set up Python
65+ uses : actions/setup-python@v5
66+ with :
67+ python-version : 3.8
6068 - name : Check plugin doc
6169 run : |
6270 make env
7381 outputs :
7482 agent : ${{ steps.filter.outputs.agent }}
7583 steps :
76- - uses : actions/checkout@v3 # required for push event
84+ - uses : actions/checkout@v4 # required for push event
7785 - name : Check for file changes
78867987 id : filter
@@ -107,7 +115,7 @@ jobs:
107115 ((github.event_name == 'schedule' && github.repository == 'apache/skywalking-python') || needs.changes.outputs.agent == 'true')
108116 runs-on : ubuntu-latest
109117 steps :
110- - uses : actions/checkout@v3
118+ - uses : actions/checkout@v4
111119 - id : set-matrix
112120 run : |
113121 sudo apt-get install jq
@@ -131,15 +139,15 @@ jobs:
131139 BASE_PYTHON_IMAGE : ${{ matrix.python-version }}
132140 steps :
133141 - name : Checkout source codes
134- uses : actions/checkout@v3
142+ uses : actions/checkout@v4
135143 with :
136144 submodules : true
137145 - name : Build SkyWalking Python agent base plugin image
138146 run : |
139147 docker build --build-arg BASE_PYTHON_IMAGE -t apache/skywalking-python-agent:latest-plugin --no-cache . -f tests/plugin/Dockerfile.plugin
140148 docker save -o docker-images-skywalking-python-plugin-${{ matrix.python-version }}.tar apache/skywalking-python-agent:latest-plugin
141149 - name : Upload docker image with specific python version
142- uses : actions/upload-artifact@v3
150+ uses : actions/upload-artifact@v4
143151 with :
144152 name : docker-images-skywalking-python-plugin-${{ matrix.python-version }}
145153 path : docker-images-skywalking-python-plugin-${{ matrix.python-version }}.tar
@@ -164,7 +172,7 @@ jobs:
164172 BASE_PYTHON_IMAGE : ${{ matrix.python-version }}
165173 steps :
166174 - name : Checkout source codes
167- uses : actions/checkout@v3
175+ uses : actions/checkout@v4
168176 with :
169177 submodules : true
170178 - name : Install docker-compose
@@ -177,15 +185,15 @@ jobs:
177185 sudo chmod +x /usr/local/bin/docker-compose
178186 fi
179187 - name : Pull SkyWalking Python agent base image
180- uses : actions/download-artifact@v3
188+ uses : actions/download-artifact@v4
181189 with :
182190 name : docker-images-skywalking-python-plugin-${{ matrix.python-version }}-slim
183191 path : docker-images
184192 - name : Load docker images
185193 run : find docker-images -name "*.tar" -exec docker load -i {} \;
186194 - name : Set up Python ${{ matrix.python-version }}
187195 # This step is crucial for correct plugin matrix in test orchestration
188- uses : actions/setup-python@v4
196+ uses : actions/setup-python@v5
189197 with :
190198 python-version : ${{ matrix.python-version }}
191199 - name : Run unit tests
@@ -210,15 +218,15 @@ jobs:
210218 BASE_PYTHON_IMAGE : ${{ matrix.python-image-variant }}
211219 steps :
212220 - name : Checkout source codes
213- uses : actions/checkout@v3
221+ uses : actions/checkout@v4
214222 with :
215223 submodules : true
216224 - name : Build SkyWalking Python agent base e2e image
217225 run : |
218226 docker build --build-arg BASE_PYTHON_IMAGE -t apache/skywalking-python-agent:latest-e2e --no-cache . -f tests/e2e/base/Dockerfile.e2e
219227 docker save -o docker-images-skywalking-python-e2e-${{ matrix.python-image-variant }}.tar apache/skywalking-python-agent:latest-e2e
220228 - name : Upload docker image
221- uses : actions/upload-artifact@v3
229+ uses : actions/upload-artifact@v4
222230 with :
223231 name : docker-images-skywalking-python-e2e-${{ matrix.python-image-variant }}
224232 path : docker-images-skywalking-python-e2e-${{ matrix.python-image-variant }}.tar
@@ -262,11 +270,11 @@ jobs:
262270 fail-fast : false
263271 steps :
264272 - name : Checkout source codes
265- uses : actions/checkout@v3
273+ uses : actions/checkout@v4
266274 with :
267275 submodules : true
268276 - name : Pull SkyWalking Python agent base image
269- uses : actions/download-artifact@v3
277+ uses : actions/download-artifact@v4
270278 with :
271279 name : docker-images-skywalking-python-e2e-${{ matrix.python-image-variant }}
272280 path : docker-images
@@ -278,7 +286,7 @@ jobs:
278286 log-dir : /tmp/e2e-logs
279287 e2e-file : ${{ matrix.case.path }}
280288 - name : Upload Logs
281- uses : actions/upload-artifact@v3
289+ uses : actions/upload-artifact@v4
282290 if : ${{ failure() }}
283291 with :
284292 name : e2e_logs_${{ matrix.case.name }}_${{ matrix.python-image-variant }}
0 commit comments