From e409273d70b13ffaefd55d5121589c3920ddf64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Wed, 3 Jul 2024 18:58:48 -0400 Subject: [PATCH 1/2] BUG: Use a different name for each macOS wheel name Use a different name for each macOS wheel name: append the Python minor version to the name. Fixes: ``` Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run ``` raised for example in: https://github.com/InsightSoftwareConsortium/ITKModuleTemplate/actions/runs/9768626552/job/26966536773?pr=164#step:9:21 --- .github/workflows/build-test-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-test-package.yml b/.github/workflows/build-test-package.yml index 9644959..ab1329a 100644 --- a/.github/workflows/build-test-package.yml +++ b/.github/workflows/build-test-package.yml @@ -253,7 +253,7 @@ jobs: - name: Publish Python package as GitHub Artifact uses: actions/upload-artifact@v3 with: - name: MacOSWheels + name: MacOSWheels${{ matrix.python-version }} path: Evaluated/ITKModuleTemplate/dist build-windows-python-packages: From eec729bdac461f51fc21f37232b4bcf8331881b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Wed, 3 Jul 2024 19:06:19 -0400 Subject: [PATCH 2/2] STYLE: Make the wheel names consistent Make the wheel names consistent: - Add the label `3` (for Python 3.x) before the minor version. - Remove the plural `s` from the macOS wheel names. Take advantage of the commit to rename the Windows wheel name root from `Window` to `Windows` to honor the OS name. --- .github/workflows/build-test-package.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-test-package.yml b/.github/workflows/build-test-package.yml index ab1329a..a948733 100644 --- a/.github/workflows/build-test-package.yml +++ b/.github/workflows/build-test-package.yml @@ -205,7 +205,7 @@ jobs: - name: Publish Python package as GitHub Artifact uses: actions/upload-artifact@v3 with: - name: LinuxWheel${{ matrix.python-version }} + name: LinuxWheel3${{ matrix.python-version }} path: Evaluated/ITKModuleTemplate/dist build-macos-python-packages: @@ -253,7 +253,7 @@ jobs: - name: Publish Python package as GitHub Artifact uses: actions/upload-artifact@v3 with: - name: MacOSWheels${{ matrix.python-version }} + name: MacOSWheel3${{ matrix.python-version }} path: Evaluated/ITKModuleTemplate/dist build-windows-python-packages: @@ -324,5 +324,5 @@ jobs: - name: Publish Python package as GitHub Artifact uses: actions/upload-artifact@v3 with: - name: WindowWheel3.${{ matrix.python-version-minor }} + name: WindowsWheel3.${{ matrix.python-version-minor }} path: Evaluated/ITKModuleTemplate/dist