Skip to content

Commit

Permalink
Bump ansys/actions from 4 to 7 (#404)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mario Ostieri <[email protected]>
Co-authored-by: Mario Ostieri <[email protected]>
  • Loading branch information
3 people authored Sep 20, 2024
1 parent 1d59e51 commit ebf3337
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 23 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ 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 }}

doc-style:
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 }}

Expand All @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}

Expand All @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion doc/.vale.ini
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ Packages = Google

# Define the Ansys vocabulary
Vocab = ANSYS
Vale.Terms = NO

[*.{md,rst}]

# Apply the following styles
BasedOnStyles = Vale, Google
BasedOnStyles = Vale, Google
Vale.Terms = NO
2 changes: 1 addition & 1 deletion doc/source/examples_source/00-basic/02-calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"""
Expand Down
2 changes: 1 addition & 1 deletion doc/source/examples_source/00-basic/06-aero_forces.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions doc/styles/.gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*
!Vocab
!Vocab/**
!config
!config/**
!.gitignore
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/ansys/pyensight/core/utils/parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/pyensight/core/utils/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ebf3337

Please sign in to comment.