From a2a3f52a9e5d4e37c5e752b8328d38700c8ddc3c Mon Sep 17 00:00:00 2001 From: Paul Profizi <100710998+PProfizi@users.noreply.github.com> Date: Fri, 5 Dec 2025 15:39:05 +0100 Subject: [PATCH 1/2] ci(post): refactor the pydpf-post branch selection logic --- .github/workflows/pydpf-post.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pydpf-post.yml b/.github/workflows/pydpf-post.yml index 71deba2c279..b040ef6a3d0 100644 --- a/.github/workflows/pydpf-post.yml +++ b/.github/workflows/pydpf-post.yml @@ -5,7 +5,7 @@ on: workflow_call: inputs: post_branch: - default: '' + default: 'main' type: string ANSYS_VERSION: required: false @@ -24,8 +24,8 @@ on: workflow_dispatch: inputs: post_branch: - description: 'PyDPF-Post branch or tag to test. Leave empty to get latest tagged version' - default: '' + description: 'PyDPF-Post branch or tag to test. Set to `latest` to get latest tagged version' + default: 'main' type: string ANSYS_VERSION: description: "ANSYS version" @@ -120,7 +120,7 @@ jobs: REPO="https://github.com/ansys/pydpf-post.git" BranchName=${{ inputs.post_branch }} echo branch="$BranchName" - if [ "$BranchName" = '' ]; + if [ "$BranchName" = 'latest' ]; then BranchName=$(git ls-remote --tags --sort="v:refname" --refs $REPO | tail -n1 | cut -d/ -f3) fi From fa97531813e4ec0c310fe34417be3e9496b1f51b Mon Sep 17 00:00:00 2001 From: Paul Profizi <100710998+PProfizi@users.noreply.github.com> Date: Fri, 5 Dec 2025 15:40:41 +0100 Subject: [PATCH 2/2] Test latest pydpf-post in ci_release.yml --- .github/workflows/ci_release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index e5639e9df90..cfccb5304ca 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -158,6 +158,7 @@ jobs: ANSYS_VERSION: ${{ matrix.version.version }} standalone_suffix: ${{ matrix.version.patch }} test_docstrings: ${{ matrix.test_docstrings }} + post_branch: latest secrets: inherit docker_tests: