Skip to content

Commit c344ce4

Browse files
committed
Merge branch 'main' into release/0.2
2 parents d8e86d7 + 4f0126c commit c344ce4

32 files changed

+3307
-215
lines changed

.github/labeler.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
documentation:
2-
- doc/**/*
3-
- README.rst
4-
- CONTRIBUTING.md
2+
- changed-files:
3+
- any-glob-to-any-file: ['doc/**/*', 'README.rst', 'CONTRIBUTING.md']
54
maintenance:
6-
- .github/**/*
7-
- .flake8
8-
- pyproject.toml
9-
- tox.ini
10-
- .gitignore
5+
- changed-files:
6+
- any-glob-to-any-file: ['.github/**/*', '.flake8' , 'pyproject.toml', 'tox.ini', '.gitignore']
117
dependencies:
12-
- pyproject.toml
8+
- changed-files:
9+
- any-glob-to-any-file: ['pyproject.toml']
1310
testing:
14-
- tests/*
11+
- changed-files:
12+
- any-glob-to-any-file: ['tests/*']

.github/workflows/ci_cd.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- name: PyAnsys code style checks
27-
uses: ansys/actions/code-style@v4
27+
uses: ansys/actions/code-style@v5
2828
with:
2929
python-version: ${{ env.MAIN_PYTHON_VERSION }}
3030

@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: PyAnsys documentation style checks
36-
uses: ansys/actions/doc-style@v4
36+
uses: ansys/actions/doc-style@v5
3737
with:
3838
token: ${{ secrets.GITHUB_TOKEN }}
3939

@@ -53,7 +53,7 @@ jobs:
5353
os: macos-latest
5454
steps:
5555
- name: Build wheelhouse and perform smoke test
56-
uses: ansys/actions/build-wheelhouse@v4
56+
uses: ansys/actions/build-wheelhouse@v5
5757
with:
5858
library-name: ${{ env.PACKAGE_NAME }}
5959
library-namespace: ${{ env.PACKAGE_NAMESPACE }}
@@ -72,7 +72,7 @@ jobs:
7272
- uses: actions/checkout@v4
7373

7474
- name: Set up Python
75-
uses: actions/setup-python@v4
75+
uses: actions/setup-python@v5
7676
with:
7777
python-version: ${{ matrix.python-version }}
7878

@@ -94,7 +94,7 @@ jobs:
9494
pytest -v --cov=ansys.sherlock --cov-report=term --cov-report=html:.cov/html --cov-report=xml:.cov/coverage.xml
9595
9696
- name: Upload coverage results
97-
uses: actions/upload-artifact@v3
97+
uses: actions/upload-artifact@v4
9898
if: env.MAIN_PYTHON_VERSION == matrix.python-version
9999
with:
100100
name: coverage-results
@@ -103,15 +103,19 @@ jobs:
103103

104104
- name: Upload coverage to Codecov
105105
if: env.MAIN_PYTHON_VERSION == matrix.python-version
106-
uses: codecov/codecov-action@v3
106+
uses: codecov/codecov-action@v4
107+
env:
108+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
109+
with:
110+
files: .cov/coverage.xml
107111

108112
docs:
109113
name: Documentation
110114
needs: [ docs-style ]
111115
runs-on: ubuntu-latest
112116
steps:
113117
- name: Run documentation building action
114-
uses: ansys/actions/doc-build@v4
118+
uses: ansys/actions/doc-build@v5
115119
with:
116120
python-version: ${{ env.MAIN_PYTHON_VERSION }}
117121

@@ -121,7 +125,7 @@ jobs:
121125
runs-on: ubuntu-latest
122126
steps:
123127
- name: Build library source and wheel artifacts
124-
uses: ansys/actions/build-library@v4
128+
uses: ansys/actions/build-library@v5
125129
with:
126130
library-name: ${{ env.PACKAGE_NAME }}
127131
python-version: ${{ env.MAIN_PYTHON_VERSION }}
@@ -133,14 +137,14 @@ jobs:
133137
runs-on: ubuntu-latest
134138
steps:
135139
- name: Release to the public PyPI repository
136-
uses: ansys/actions/release-pypi-public@v4
140+
uses: ansys/actions/release-pypi-public@v5
137141
with:
138142
library-name: ${{ env.PACKAGE_NAME }}
139143
twine-username: "__token__"
140144
twine-token: ${{ secrets.PYPI_TOKEN }}
141145

142146
- name: Release to GitHub
143-
uses: ansys/actions/release-github@v4
147+
uses: ansys/actions/release-github@v5
144148
with:
145149
library-name: ${{ env.PACKAGE_NAME }}
146150

@@ -151,7 +155,7 @@ jobs:
151155
needs: [ package ]
152156
steps:
153157
- name: Deploy the latest documentation
154-
uses: ansys/actions/doc-deploy-dev@v4
158+
uses: ansys/actions/doc-deploy-dev@v5
155159
with:
156160
cname: ${{ env.DOCUMENTATION_CNAME }}
157161
token: ${{ secrets.GITHUB_TOKEN }}
@@ -163,7 +167,7 @@ jobs:
163167
needs: [ release ]
164168
steps:
165169
- name: Deploy the stable documentation
166-
uses: ansys/actions/doc-deploy-stable@v4
170+
uses: ansys/actions/doc-deploy-stable@v5
167171
with:
168172
cname: ${{ env.DOCUMENTATION_CNAME }}
169173
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/label.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232

3333
# Label based on modified files
3434
- name: Label based on changed files
35-
uses: actions/labeler@v4
35+
uses: actions/labeler@v5
3636
with:
3737
repo-token: ${{ secrets.GITHUB_TOKEN }}
38-
sync-labels: ''
38+
sync-labels: true
3939

4040
# Label based on branch name
4141
- uses: actions-ecosystem/action-add-labels@v1
@@ -70,7 +70,7 @@ jobs:
7070
runs-on: ubuntu-latest
7171
steps:
7272
- name: Suggest to add labels
73-
uses: peter-evans/create-or-update-comment@v3
73+
uses: peter-evans/create-or-update-comment@v4
7474
# Execute only when no labels have been applied to the pull request
7575
if: toJSON(github.event.pull_request.labels.*.name) == '{}'
7676
with:

PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Checklist:
44
- pre-commit command line check
55
- Problems tab in PyCharm
66
- [] Bench test new/modified APIs by using and modifying the code in the example for the API method
7-
- [] Add new methods to rst file for updated API script(<pysherlock>\doc\source\api)
7+
- [] Add new classes to rst files, located at: <pysherlock>\doc\source\api
88
- [] Generate documentation
99
- [] Verify the HTML. It gets generated at: <pysherlock>\doc\build\html.
1010
- Open index.html

doc/source/api/analysis.rst

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,9 @@
33
Analysis
44
========
55

6-
The ``analysis`` module contains all analysis capabilities.
7-
8-
.. currentmodule:: ansys.sherlock.core.analysis
6+
.. automodule:: ansys.sherlock.core.analysis
97

108
.. autosummary::
119
:toctree: _autosummary
1210

13-
ansys.sherlock.core.analysis.Analysis.get_harmonic_vibe_input_fields
14-
ansys.sherlock.core.analysis.Analysis.get_ict_analysis_input_fields
15-
ansys.sherlock.core.analysis.Analysis.get_mechanical_shock_input_fields
16-
ansys.sherlock.core.analysis.Analysis.get_random_vibe_input_fields
17-
ansys.sherlock.core.analysis.Analysis.get_solder_fatigue_input_fields
18-
ansys.sherlock.core.analysis.Analysis.run_analysis
19-
ansys.sherlock.core.analysis.Analysis.run_strain_map_analysis
20-
ansys.sherlock.core.analysis.Analysis.update_harmonic_vibe_props
21-
ansys.sherlock.core.analysis.Analysis.update_ict_analysis_props
22-
ansys.sherlock.core.analysis.Analysis.update_mechanical_shock_props
23-
ansys.sherlock.core.analysis.Analysis.update_natural_frequency_props
24-
ansys.sherlock.core.analysis.Analysis.update_part_modeling_props
25-
ansys.sherlock.core.analysis.Analysis.update_pcb_modeling_props
26-
ansys.sherlock.core.analysis.Analysis.update_random_vibe_props
27-
ansys.sherlock.core.analysis.Analysis.update_solder_fatigue_props
11+
ansys.sherlock.core.analysis.Analysis

doc/source/api/common.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,9 @@
33
Common
44
======
55

6-
The ``common`` module contains all common capabilities.
7-
8-
.. currentmodule:: ansys.sherlock.core.common
6+
.. automodule:: ansys.sherlock.core.common
97

108
.. autosummary::
119
:toctree: _autosummary
1210

13-
ansys.sherlock.core.common.Common.check
14-
ansys.sherlock.core.common.Common.exit
15-
ansys.sherlock.core.common.Common.is_sherlock_client_loading
16-
ansys.sherlock.core.common.Common.list_solder_materials
17-
ansys.sherlock.core.common.Common.list_units
11+
ansys.sherlock.core.common.Common

doc/source/api/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Use the search feature or click links to view API documentation.
2020
layer_types
2121
parts_types
2222
project
23+
project_types
2324
stackup
2425

2526
.. autosummary::
@@ -34,4 +35,5 @@ Use the search feature or click links to view API documentation.
3435
ansys.sherlock.core.types.layer_types
3536
ansys.sherlock.core.types.parts_types
3637
ansys.sherlock.core.project
38+
ansys.sherlock.core.types.project_types
3739
ansys.sherlock.core.stackup

doc/source/api/launcher.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
Launcher
55
========
66

7-
The ``launcher`` module launches the Sherlock gRPC server and a Sherlock client.
8-
9-
.. currentmodule:: ansys.sherlock.core.launcher
7+
.. automodule:: ansys.sherlock.core.launcher
108

119
.. autosummary::
1210
:toctree: _autosummary

doc/source/api/layer.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
Layer
55
=====
66

7-
The ``layer`` module contains all layer management capabilities.
8-
9-
.. currentmodule:: ansys.sherlock.core.layer
7+
.. automodule:: ansys.sherlock.core.layer
108

119
.. autosummary::
1210
:toctree: _autosummary
1311

14-
ansys.sherlock.core.layer.Layer.update_mount_points_by_file
15-
ansys.sherlock.core.layer.Layer.add_potting_region
12+
ansys.sherlock.core.layer.Layer

doc/source/api/lifecycle.rst

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,9 @@
44
Lifecycle
55
=========
66

7-
The ``lifecycle`` module contains all life cycle management capabilities.
8-
9-
.. currentmodule:: ansys.sherlock.core.lifecycle
7+
.. automodule:: ansys.sherlock.core.lifecycle
108

119
.. autosummary::
1210
:toctree: _autosummary
1311

14-
ansys.sherlock.core.lifecycle.Lifecycle.add_harmonic_event
15-
ansys.sherlock.core.lifecycle.Lifecycle.add_harmonic_vibe_profiles
16-
ansys.sherlock.core.lifecycle.Lifecycle.add_random_vibe_event
17-
ansys.sherlock.core.lifecycle.Lifecycle.add_random_vibe_profiles
18-
ansys.sherlock.core.lifecycle.Lifecycle.add_shock_event
19-
ansys.sherlock.core.lifecycle.Lifecycle.add_shock_profiles
20-
ansys.sherlock.core.lifecycle.Lifecycle.add_thermal_event
21-
ansys.sherlock.core.lifecycle.Lifecycle.add_thermal_profiles
22-
ansys.sherlock.core.lifecycle.Lifecycle.create_life_phase
23-
ansys.sherlock.core.lifecycle.Lifecycle.load_harmonic_profile
24-
ansys.sherlock.core.lifecycle.Lifecycle.load_random_vibe_profile
12+
ansys.sherlock.core.lifecycle.Lifecycle

0 commit comments

Comments
 (0)