Skip to content

Commit f084e02

Browse files
committed
Use pattern to reduce the number of downloaded artifacts.
1 parent c34d4e2 commit f084e02

File tree

10 files changed

+39
-11
lines changed

10 files changed

+39
-11
lines changed

.github/workflows/ApplicationTesting.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ jobs:
258258
uses: pyTooling/upload-artifact@v4
259259
with:
260260
name: ${{ inputs.apptest_xml_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }}
261-
path: report/unit/TestReportSummary.xml
261+
working-directory: report/unit
262+
path: TestReportSummary.xml
262263
if-no-files-found: error
263264
retention-days: 1

.github/workflows/BuildTheDocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ jobs:
5353
uses: pyTooling/upload-artifact@v4
5454
with:
5555
name: ${{ inputs.artifact }}
56-
path: doc/_build/html
56+
working-directory: doc/_build/html
57+
path: '*'
5758
retention-days: 1
5859

5960
- name: '📓 Publish site to GitHub Pages'

.github/workflows/CoverageCollection.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ jobs:
166166
uses: pyTooling/upload-artifact@v4
167167
with:
168168
name: ${{ inputs.artifact }}
169-
path: ${{ steps.getVariables.outputs.coverage_report_html_directory }}
169+
working-directory: ${{ steps.getVariables.outputs.coverage_report_html_directory }}
170+
path: '*'
170171
if-no-files-found: error
171172
retention-days: 1
172173

.github/workflows/Package.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ jobs:
109109
uses: pyTooling/upload-artifact@v4
110110
with:
111111
name: ${{ inputs.artifact }}
112-
path: dist/
112+
working-directory: dist
113+
path: '*'
113114
if-no-files-found: error
114115
retention-days: 1

.github/workflows/PublishCoverageResults.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ on:
2929
required: false
3030
default: '24.04'
3131
type: string
32+
coverage_artifacts_pattern:
33+
required: false
34+
default: '*-CodeCoverage-*'
35+
type: string
3236
coverage_config:
3337
description: 'Path to the .coveragerc file. Use pyproject.toml by default.'
3438
required: false
@@ -75,8 +79,13 @@ jobs:
7579
- name: Download Artifacts
7680
uses: pyTooling/download-artifact@v4
7781
with:
82+
pattern: ${{ inputs.coverage_artifacts_pattern }}
7883
path: artifacts
7984

85+
- name: 🔎 Inspect extracted artifact (tarball)
86+
run: |
87+
tree -psh artifacts
88+
8089
- name: 🔧 Install coverage and tomli
8190
run: |
8291
python -m pip install -U --disable-pip-version-check --break-system-packages coverage[toml] tomli
@@ -206,7 +215,8 @@ jobs:
206215
uses: pyTooling/upload-artifact@v4
207216
with:
208217
name: ${{ inputs.coverage_html_artifact }}
209-
path: ${{ steps.getVariables.outputs.coverage_report_html_directory }}
218+
working-directory: ${{ steps.getVariables.outputs.coverage_report_html_directory }}
219+
path: '*'
210220
if-no-files-found: error
211221
retention-days: 1
212222

.github/workflows/PublishOnPyPI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
uses: pyTooling/download-artifact@v4
6161
with:
6262
name: ${{ inputs.artifact }}
63-
path: dist/
63+
path: dist
6464

6565
- name: 🐍 Setup Python ${{ inputs.python_version }}
6666
uses: actions/setup-python@v5

.github/workflows/PublishTestResults.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ on:
3030
required: false
3131
default: '24.04'
3232
type: string
33+
unittest_artifacts_pattern:
34+
required: false
35+
default: '*-UnitTestReportSummary-*'
36+
type: string
3337
merged_junit_artifact:
3438
description: 'Name of the merged JUnit Test Summary artifact.'
3539
required: false
@@ -64,8 +68,13 @@ jobs:
6468
- name: Download Artifacts
6569
uses: pyTooling/download-artifact@v4
6670
with:
71+
pattern: ${{ inputs.unittest_artifacts_pattern }}
6772
path: artifacts
6873

74+
- name: 🔎 Inspect extracted artifact (tarball)
75+
run: |
76+
tree -psh artifacts
77+
6978
- name: 🔧 Install pyEDAA.Reports (JUunit Parser and Merger)
7079
run: |
7180
python -m pip install --disable-pip-version-check --break-system-packages -U pyEDAA.Reports

.github/workflows/SphinxDocumentation.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ jobs:
127127
uses: pyTooling/upload-artifact@v4
128128
with:
129129
name: ${{ inputs.html_artifact }}
130-
path: ${{ inputs.doc_directory }}/_build/html
130+
working-directory: ${{ inputs.doc_directory }}/_build/html
131+
path: '*'
131132
if-no-files-found: error
132133
retention-days: 1
133134

@@ -185,6 +186,7 @@ jobs:
185186
uses: pyTooling/upload-artifact@v4
186187
with:
187188
name: ${{ inputs.latex_artifact }}
188-
path: ${{ inputs.doc_directory }}/_build/latex
189+
working-directory: ${{ inputs.doc_directory }}/_build/latex
190+
path: '*'
189191
if-no-files-found: error
190192
retention-days: 1

.github/workflows/StaticTypeCheck.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ jobs:
9292
uses: pyTooling/upload-artifact@v4
9393
with:
9494
name: ${{ inputs.html_artifact }}
95-
path: ${{ inputs.html_report }}
95+
working-directory: ${{ inputs.html_report }}
96+
path: '*'
9697
if-no-files-found: error
9798
retention-days: 1
9899

.github/workflows/UnitTesting.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,8 @@ jobs:
445445
uses: pyTooling/upload-artifact@v4
446446
with:
447447
name: ${{ inputs.unittest_xml_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }}
448-
path: report/unit/TestReportSummary.xml
448+
working-directory: report/unit
449+
path: TestReportSummary.xml
449450
if-no-files-found: error
450451
retention-days: 1
451452

@@ -496,6 +497,7 @@ jobs:
496497
uses: pyTooling/upload-artifact@v4
497498
with:
498499
name: ${{ inputs.coverage_html_artifact }}-${{ matrix.system }}-${{ matrix.runtime }}-${{ matrix.python }}
499-
path: ${{ steps.getVariables.outputs.coverage_report_html_directory }}
500+
working-directory: ${{ steps.getVariables.outputs.coverage_report_html_directory }}
501+
path: '*'
500502
if-no-files-found: error
501503
retention-days: 1

0 commit comments

Comments
 (0)