Skip to content

Commit f8ba59d

Browse files
authored
Migrate to artifact-upload and artifact-download v4 (#2124)
* Migrate to artifact-upload and artifact-download v4 * Fix artifact names * Fix usage of geekyeggo/delete-artifac
1 parent bf84dca commit f8ba59d

File tree

5 files changed

+20
-17
lines changed

5 files changed

+20
-17
lines changed

.github/actions/build-distribution/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
run: ./dev-utils/make-distribution.sh
1515
shell: bash
1616

17-
- uses: actions/upload-artifact@v3
17+
- uses: actions/upload-artifact@v4
1818
with:
1919
name: build-distribution
2020
path: ./build/

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
runs-on: ubuntu-latest
8080
steps:
8181
- uses: actions/checkout@v4
82-
- uses: actions/download-artifact@v3
82+
- uses: actions/download-artifact@v4
8383
with:
8484
name: build-distribution
8585
path: ./build
@@ -128,7 +128,7 @@ jobs:
128128
username: ${{ secrets.ELASTIC_DOCKER_USERNAME }}
129129
password: ${{ secrets.ELASTIC_DOCKER_PASSWORD }}
130130

131-
- uses: actions/download-artifact@v3
131+
- uses: actions/download-artifact@v4
132132
with:
133133
name: build-distribution
134134
path: ./build

.github/workflows/run-matrix.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ jobs:
2828
LOCALSTACK_VOLUME_DIR: localstack_data
2929
- if: success() || failure()
3030
name: Upload JUnit Test Results
31-
uses: actions/upload-artifact@v3
31+
uses: actions/upload-artifact@v4
3232
with:
33-
name: test-results
33+
name: test-results-${{ matrix.framework }}-${{ matrix.version }}
3434
path: "**/*-python-agent-junit.xml"
3535
- if: success() || failure()
3636
name: Upload Coverage Reports
37-
uses: actions/upload-artifact@v3
37+
uses: actions/upload-artifact@v4
3838
with:
39-
name: coverage-reports
39+
name: coverage-reports-${{ matrix.framework }}-${{ matrix.version }}
4040
path: "**/.coverage*"
4141
include-hidden-files: true

.github/workflows/test-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
ENDOFFILE
3737
- if: success() || failure()
3838
name: Upload JUnit Test Results
39-
uses: actions/upload-artifact@v3
39+
uses: actions/upload-artifact@v4
4040
with:
41-
name: test-results
41+
name: test-results-docs
4242
path: "docs-python-agent-junit.xml"

.github/workflows/test.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,18 @@ jobs:
145145
run: .\scripts\run-tests.bat
146146
- if: success() || failure()
147147
name: Upload JUnit Test Results
148-
uses: actions/upload-artifact@v3
148+
uses: actions/upload-artifact@v4
149149
with:
150-
name: test-results
150+
name: test-results-${{ matrix.framework }}-${{ matrix.version }}-asyncio-${{ matrix.asyncio }}
151151
path: "**/*-python-agent-junit.xml"
152+
retention-days: 1
152153
- if: success() || failure()
153154
name: Upload Coverage Reports
154-
uses: actions/upload-artifact@v3
155+
uses: actions/upload-artifact@v4
155156
with:
156-
name: coverage-reports
157+
name: coverage-reports-${{ matrix.framework }}-${{ matrix.version }}-asyncio-${{ matrix.asyncio }}
157158
path: "**/.coverage*"
159+
retention-days: 1
158160
# This job is here to have a single status check that can be set as required.
159161
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idneeds
160162
# If a run contains a series of jobs that need each other, a failure applies to all jobs in the dependency chain from the point of failure onwards.
@@ -197,9 +199,10 @@ jobs:
197199

198200
- run: python -Im pip install --upgrade coverage[toml]
199201

200-
- uses: actions/download-artifact@v3
202+
- uses: actions/download-artifact@v4
201203
with:
202-
name: coverage-reports
204+
pattern: coverage-reports-*
205+
merge-multiple: true
203206

204207
- name: Combine coverage & fail if it's <84%.
205208
run: |
@@ -217,6 +220,6 @@ jobs:
217220
with:
218221
name: html-coverage-report
219222
path: htmlcov
220-
- uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b
223+
- uses: geekyeggo/delete-artifact@f275313e70c08f6120db482d7a6b98377786765b # 5.1.0
221224
with:
222-
name: coverage-reports
225+
name: coverage-reports-*

0 commit comments

Comments
 (0)