From ebf3337eaf3251f0fb2151b72bb4b8ef146d62a5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 10:32:50 +0000 Subject: [PATCH] Bump ansys/actions from 4 to 7 (#404) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mario Ostieri <107915956+mariostieriansys@users.noreply.github.com> Co-authored-by: Mario Ostieri --- .github/workflows/ci_cd.yml | 22 +++++++++---------- .github/workflows/nightly-docs.yml | 4 ++-- .github/workflows/nightly.yml | 4 ++-- .pre-commit-config.yaml | 3 ++- doc/.vale.ini | 4 +++- .../examples_source/00-basic/02-calc.py | 2 +- .../00-basic/06-aero_forces.py | 2 +- doc/styles/.gitignore | 4 ++-- .../vocabularies}/ANSYS/accept.txt | 0 .../vocabularies}/ANSYS/reject.txt | 0 src/ansys/pyensight/core/utils/parts.py | 2 +- src/ansys/pyensight/core/utils/variables.py | 2 +- 12 files changed, 26 insertions(+), 23 deletions(-) rename doc/styles/{Vocab => config/vocabularies}/ANSYS/accept.txt (100%) rename doc/styles/{Vocab => config/vocabularies}/ANSYS/reject.txt (100%) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index b8c87879196..51dcb026c24 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -28,7 +28,7 @@ jobs: name: "Code style" runs-on: ubuntu-latest steps: - - uses: ansys/actions/code-style@v4 + - uses: ansys/actions/code-style@v7 with: python-version: ${{ env.MAIN_PYTHON_VERSION }} @@ -36,7 +36,7 @@ jobs: name: "Doc style" runs-on: ubuntu-latest steps: - - uses: ansys/actions/doc-style@v4 + - uses: ansys/actions/doc-style@v7 with: token: ${{ secrets.GITHUB_TOKEN }} @@ -56,7 +56,7 @@ jobs: os: macos-latest steps: - name: Build wheelhouse and perform smoke test - uses: ansys/actions/build-wheelhouse@v4 + uses: ansys/actions/build-wheelhouse@v7 with: library-name: ${{ env.PACKAGE_NAME }} library-namespace: ${{ env.PACKAGE_NAMESPACE }} @@ -84,7 +84,7 @@ jobs: run: docker pull ${{ env.ENSIGHT_IMAGE }} - name: Run pytest - uses: ansys/actions/tests-pytest@v4 + uses: ansys/actions/tests-pytest@v7 env: ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} with: @@ -112,7 +112,7 @@ jobs: run: docker pull ${{ env.ENSIGHT_IMAGE }} - name: Run Ansys documentation building action - uses: ansys/actions/doc-build@v4 + uses: ansys/actions/doc-build@v6 env: ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} with: @@ -123,7 +123,7 @@ jobs: needs: [doc, tests] runs-on: ubuntu-latest steps: - - uses: ansys/actions/build-library@v4 + - uses: ansys/actions/build-library@v7 with: library-name: ${{ env.PACKAGE_NAME }} python-version: ${{ env.MAIN_PYTHON_VERSION }} @@ -136,7 +136,7 @@ jobs: runs-on: ubuntu-latest steps: - name: "Deploy the latest documentation" - uses: ansys/actions/doc-deploy-dev@v4 + uses: ansys/actions/doc-deploy-dev@v7 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} @@ -149,20 +149,20 @@ jobs: steps: # Upload first to the private PyPi, at least up until we release - name: Release to the private PyPI repository - uses: ansys/actions/release-pypi-private@v4 + uses: ansys/actions/release-pypi-private@v7 with: library-name: ${{ env.PACKAGE_NAME }} twine-token: ${{ secrets.PYANSYS_PYPI_PRIVATE_PAT }} - name: Release to the public PyPI repository - uses: ansys/actions/release-pypi-public@v4 + uses: ansys/actions/release-pypi-public@v7 with: library-name: ${{ env.PACKAGE_NAME }} twine-username: "__token__" twine-token: ${{ secrets.PYPI_TOKEN }} - name: Release to GitHub - uses: ansys/actions/release-github@v4 + uses: ansys/actions/release-github@v7 with: library-name: ${{ env.PACKAGE_NAME }} @@ -174,7 +174,7 @@ jobs: needs: release steps: - name: "Deploy the stable documentation" - uses: ansys/actions/doc-deploy-stable@v4 + uses: ansys/actions/doc-deploy-stable@v7 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/nightly-docs.yml b/.github/workflows/nightly-docs.yml index a2b9e1c2c77..eb648f22c12 100644 --- a/.github/workflows/nightly-docs.yml +++ b/.github/workflows/nightly-docs.yml @@ -31,7 +31,7 @@ jobs: run: docker pull ${{ env.ENSIGHT_IMAGE }} - name: Run Ansys documentation building action - uses: ansys/actions/doc-build@v4 + uses: ansys/actions/doc-build@v7 env: ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} with: @@ -43,7 +43,7 @@ jobs: steps: - name: Deploy development documentation - uses: ansys/actions/doc-deploy-dev@v4 + uses: ansys/actions/doc-deploy-dev@v7 with: cname: ${{ env.DOCUMENTATION_CNAME }} token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index f6958dee62b..6569fe5503a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -26,7 +26,7 @@ jobs: run: docker pull ${{ env.ENSIGHT_IMAGE }} - name: Run pytest - uses: ansys/actions/tests-pytest@v4 + uses: ansys/actions/tests-pytest@v7 env: ANSYSLMD_LICENSE_FILE: ${{ format('1055@{0}', secrets.LICENSE_SERVER) }} with: @@ -42,7 +42,7 @@ jobs: steps: - name: Build library source and wheel artifacts - uses: ansys/actions/build-library@v4 + uses: ansys/actions/build-library@v7 with: library-name: ${{ env.PACKAGE_NAME }} python-version: ${{ env.MAIN_PYTHON_VERSION }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 47656d3407d..e4ba39c7198 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,10 +15,11 @@ repos: - id: flake8 - repo: https://github.com/codespell-project/codespell - rev: v2.2.4 + rev: v2.2.6 hooks: - id: codespell additional_dependencies: ["tomli"] + args: ["--ignore-words", "doc/styles/config/vocabularies/ANSYS/accept.txt"] - repo: https://github.com/PyCQA/bandit rev: 1.7.5 diff --git a/doc/.vale.ini b/doc/.vale.ini index 2115eededb1..4cf8d554f4d 100644 --- a/doc/.vale.ini +++ b/doc/.vale.ini @@ -25,8 +25,10 @@ Packages = Google # Define the Ansys vocabulary Vocab = ANSYS +Vale.Terms = NO [*.{md,rst}] # Apply the following styles -BasedOnStyles = Vale, Google \ No newline at end of file +BasedOnStyles = Vale, Google +Vale.Terms = NO \ No newline at end of file diff --git a/doc/source/examples_source/00-basic/02-calc.py b/doc/source/examples_source/00-basic/02-calc.py index 90cc85ec51c..118bd1d3ecd 100644 --- a/doc/source/examples_source/00-basic/02-calc.py +++ b/doc/source/examples_source/00-basic/02-calc.py @@ -4,7 +4,7 @@ Calculator usage ================ -Utilze EnSight Calculator to compute the Spatial Mean of a field variable. +Utilize EnSight Calculator to compute the Spatial Mean of a field variable. Display this constant value, and the create graph over time. """ diff --git a/doc/source/examples_source/00-basic/06-aero_forces.py b/doc/source/examples_source/00-basic/06-aero_forces.py index 15ad7ab4b6b..6e106b9e575 100755 --- a/doc/source/examples_source/00-basic/06-aero_forces.py +++ b/doc/source/examples_source/00-basic/06-aero_forces.py @@ -4,7 +4,7 @@ Calculate the Net Aerodynamic Forces ======================================================= -Utilze EnSight Net Force Tool in order +Utilize EnSight Net Force Tool in order to Calculate the Net Aerodynamic Forces Intended to work with EnSight version 24.2 or later diff --git a/doc/styles/.gitignore b/doc/styles/.gitignore index 080f12aa43c..62d72f2c268 100644 --- a/doc/styles/.gitignore +++ b/doc/styles/.gitignore @@ -1,4 +1,4 @@ * -!Vocab -!Vocab/** +!config +!config/** !.gitignore \ No newline at end of file diff --git a/doc/styles/Vocab/ANSYS/accept.txt b/doc/styles/config/vocabularies/ANSYS/accept.txt similarity index 100% rename from doc/styles/Vocab/ANSYS/accept.txt rename to doc/styles/config/vocabularies/ANSYS/accept.txt diff --git a/doc/styles/Vocab/ANSYS/reject.txt b/doc/styles/config/vocabularies/ANSYS/reject.txt similarity index 100% rename from doc/styles/Vocab/ANSYS/reject.txt rename to doc/styles/config/vocabularies/ANSYS/reject.txt diff --git a/src/ansys/pyensight/core/utils/parts.py b/src/ansys/pyensight/core/utils/parts.py index 33b35728719..d79fbe9c4de 100644 --- a/src/ansys/pyensight/core/utils/parts.py +++ b/src/ansys/pyensight/core/utils/parts.py @@ -194,7 +194,7 @@ def select_parts_by_tag( Dictionary containing the key and value pairs for finding the parts. Only the parts that have all the keys and corresponding values are returned. If a value for this parameter is supplied, it - takes precedence over the valeus supplied for the ``tag`` and + takes precedence over the values supplied for the ``tag`` and ``value`` parameters. Returns diff --git a/src/ansys/pyensight/core/utils/variables.py b/src/ansys/pyensight/core/utils/variables.py index d7ea0f1d1d4..372c7bfcbec 100644 --- a/src/ansys/pyensight/core/utils/variables.py +++ b/src/ansys/pyensight/core/utils/variables.py @@ -71,7 +71,7 @@ def calculator(self) -> "ens_calculator": Examples -------- - The following are equavalent: + The following are equivalent: >>> # Native API >>> session.ensight.part.select_all()