From 46f4f3584f5fddd2f0b6e052993df0810b6c22b6 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 21 Nov 2025 16:14:14 +0100 Subject: [PATCH 1/8] fix: packaging --- .github/workflows/ci_cd.yml | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index ef068ece..cff41c78 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -238,38 +238,16 @@ jobs: bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} build: - name: Build library - needs: [tests, docs] + name: "Package library" + needs: [build-tests, doc-build] runs-on: ubuntu-latest steps: - - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - with: - persist-credentials: false - - - name: Set up Python - uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 + - name: "Build library source and wheel artifacts" + uses: ansys/actions/build-library@v8 with: + library-name: ${{ env.LIBRARY_NAME}} python-version: ${{ env.MAIN_PYTHON_VERSION }} - - name: Add version information - run: make version-info - - - name: Install dependencies and build the library - run: | - python -m pip install --upgrade pip - python -m pip install -r requirements/requirements_build.txt - python -m build - python -m twine check dist/* - - - name: Upload package - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 - with: - name: PyFluent-packages - path: | - dist/*.whl - dist/*.tar.gz - retention-days: 7 - release: name: "Release project to private, public PyPI and GitHub" needs: build From eca139335de0f4cbd69fa0abb0de26603cf0fce5 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 21 Nov 2025 16:15:47 +0100 Subject: [PATCH 2/8] fix: packaging --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index cff41c78..590d1aaf 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -239,7 +239,7 @@ jobs: build: name: "Package library" - needs: [build-tests, doc-build] + needs: [tests, docs] runs-on: ubuntu-latest steps: - name: "Build library source and wheel artifacts" From 249495063ce74cda6514ff28045b2dc732c75720 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 21 Nov 2025 16:17:31 +0100 Subject: [PATCH 3/8] fix: packaging hash --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 590d1aaf..73ef8604 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -243,7 +243,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Build library source and wheel artifacts" - uses: ansys/actions/build-library@v8 + uses: ansys/actions/build-library@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4 with: library-name: ${{ env.LIBRARY_NAME}} python-version: ${{ env.MAIN_PYTHON_VERSION }} From 9cb892a06fbea3af54c9f063dd16ea6516cf7741 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 21 Nov 2025 16:20:13 +0100 Subject: [PATCH 4/8] fix: deploy docs secret --- .github/workflows/ci_cd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 73ef8604..7d902a91 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -226,14 +226,14 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - needs: [ docs ] + needs: [docs] steps: - name: "Deploy the stable documentation" - uses: ansys/actions/doc-deploy-stable@v10.1.0 + uses: ansys/actions/doc-deploy-stable@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4 with: doc-artifact-name: HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }} cname: ${{ env.DOCUMENTATION_CNAME }} - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} bot-user: ${{ secrets.PYANSYS_CI_BOT_USERNAME }} bot-email: ${{ secrets.PYANSYS_CI_BOT_EMAIL }} From e24a3f4ed7b4e6671a41afaf61c25e9d974c0e7a Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 21 Nov 2025 16:36:23 +0100 Subject: [PATCH 5/8] fix: test --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 7d902a91..0e1643df 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -239,7 +239,7 @@ jobs: build: name: "Package library" - needs: [tests, docs] + # needs: [tests, docs] runs-on: ubuntu-latest steps: - name: "Build library source and wheel artifacts" From 082ac757199d6cbab6e22c8b7fd5e6fe448bbd51 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 21 Nov 2025 16:39:13 +0100 Subject: [PATCH 6/8] fix: packaging --- .github/workflows/ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 8aa02880..48d61870 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -241,7 +241,7 @@ jobs: build: name: "Package library" - # needs: [tests, docs] + needs: [tests, docs] runs-on: ubuntu-latest steps: - name: "Build library source and wheel artifacts" From b63fa20e9b998061a9e3bb121ebb6e2f3132f1b9 Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Fri, 21 Nov 2025 16:46:46 +0100 Subject: [PATCH 7/8] fix: update the actions versions --- .github/workflows/ci_cd.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 48d61870..1b22d1d0 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Running Vale - uses: ansys/actions/doc-style@v10 + uses: ansys/actions/doc-style@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -43,7 +43,7 @@ jobs: name: "Check library vulnerabilities" runs-on: ubuntu-latest steps: - - uses: ansys/actions/check-vulnerabilities@main + - uses: ansys/actions/check-vulnerabilities@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} token: ${{ secrets.PYANSYS_CI_BOT_TOKEN }} @@ -55,7 +55,7 @@ jobs: name: "Actions Security" runs-on: ubuntu-latest steps: - - uses: ansys/actions/check-actions-security@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4 + - uses: ansys/actions/check-actions-security@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 with: generate-summary: true token: ${{ secrets.GITHUB_TOKEN }} @@ -231,7 +231,7 @@ jobs: needs: [ docs ] steps: - name: "Deploy the stable documentation" - uses: ansys/actions/doc-deploy-stable@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4 + uses: ansys/actions/doc-deploy-stable@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 with: doc-artifact-name: HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }} cname: ${{ env.DOCUMENTATION_CNAME }} @@ -245,7 +245,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Build library source and wheel artifacts" - uses: ansys/actions/build-library@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4 + uses: ansys/actions/build-library@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 with: library-name: ${{ env.LIBRARY_NAME}} python-version: ${{ env.MAIN_PYTHON_VERSION }} @@ -274,7 +274,7 @@ jobs: run: ls -R - name: "Release to the private PyPI repository" - uses: ansys/actions/release-pypi-private@v10 + uses: ansys/actions/release-pypi-private@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 with: library-name: ${{ env.LIBRARY_NAME }} twine-username: "__token__" From 3c1cff90b6c0779fbf0d25f8d1f166ae91332b7a Mon Sep 17 00:00:00 2001 From: Revathyvenugopal162 Date: Mon, 24 Nov 2025 06:12:03 +0100 Subject: [PATCH 8/8] fix: update the actions versions --- .github/workflows/ci_cd.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 1b22d1d0..43308b71 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -27,6 +27,7 @@ env: LIBRARY_NAME: 'ansys-fluent-visualization' PYFLUENT_TIMEOUT_FORCE_EXIT: 5 PYFLUENT_LAUNCH_CONTAINER: 1 + DOC_DEPLOYMENT_IMAGE_TAG: v25.2.0 jobs: @@ -132,7 +133,6 @@ jobs: contents: read packages: read env: - DOC_DEPLOYMENT_IMAGE_TAG: v25.2.0 DOCUMENTATION_CNAME: "visualization.fluent.docs.pyansys.com" XDG_RUNTIME_DIR: /tmp/runtime-${{ github.run_id }} @@ -222,16 +222,14 @@ jobs: deploy-docs-release: name: "Upload release documentation" - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + if: github.event_name == 'push' && contains(github.ref, 'refs/tags') runs-on: ubuntu-latest permissions: contents: write - env: - DOC_DEPLOYMENT_IMAGE_TAG: v25.2.0 - needs: [ docs ] + needs: [docs] steps: - name: "Deploy the stable documentation" - uses: ansys/actions/doc-deploy-stable@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5 + uses: ansys/actions/doc-deploy-stable@10 with: doc-artifact-name: HTML-Documentation-tag-${{ env.DOC_DEPLOYMENT_IMAGE_TAG }} cname: ${{ env.DOCUMENTATION_CNAME }}