30
30
contents : write
31
31
pull-requests : write
32
32
steps :
33
- - uses : ansys/actions/doc-deploy-changelog@v9
33
+ - uses : ansys/actions/doc-deploy-changelog@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
34
34
with :
35
35
token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
36
36
bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
42
42
runs-on : ubuntu-latest
43
43
steps :
44
44
- name : Check commit name
45
- uses : ansys/actions/check-pr-title@v9
45
+ uses : ansys/actions/check-pr-title@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
46
46
with :
47
47
token : ${{ secrets.GITHUB_TOKEN }}
48
48
51
51
runs-on : ubuntu-latest
52
52
steps :
53
53
- name : PyAnsys documentation style checks
54
- uses : ansys/actions/doc-style@v9
54
+ uses : ansys/actions/doc-style@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
55
55
with :
56
56
token : ${{ secrets.GITHUB_TOKEN }}
57
57
65
65
python-version : ['3.10', '3.11', '3.12', '3.13']
66
66
steps :
67
67
- name : Build wheelhouse and perform smoke test
68
- uses : ansys/actions/build-wheelhouse@v9
68
+ uses : ansys/actions/build-wheelhouse@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
69
69
with :
70
70
library-name : ${{ env.PACKAGE_NAME }}
71
71
operating-system : ${{ matrix.os }}
77
77
needs : [doc-style]
78
78
steps :
79
79
- name : Checkout
80
- uses : actions/checkout@v4
80
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
81
81
- name : Login to GitHub Packages
82
- uses : docker/login-action@v3
82
+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
83
83
with :
84
84
registry : ghcr.io/ansys
85
85
username : ${{ github.actor }}
91
91
run : |
92
92
docker run --detach --name speos-rpc -p 50098:50098 -e SPEOS_LOG_LEVEL=2 -e ANSYSLMD_LICENSE_FILE=${{ env.ANSYSLMD_LICENSE_FILE }} -v "${{ github.workspace }}/tests/assets:/app/assets" --entrypoint /app/SpeosRPC_Server.x ghcr.io/ansys/speos-rpc:251
93
93
- name : " Run Ansys documentation building action"
94
- uses : ansys/actions/doc-build@v9
94
+ uses : ansys/actions/doc-build@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
95
95
with :
96
96
python-version : ${{ env.MAIN_PYTHON_VERSION }}
97
97
check-links : false
@@ -112,7 +112,7 @@ jobs:
112
112
runs-on : ubuntu-latest
113
113
114
114
steps :
115
- - uses : actions/checkout@v4
115
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
116
116
117
117
- name : Installing OS packages
118
118
shell : bash
@@ -121,7 +121,7 @@ jobs:
121
121
sudo apt install -y libgl1 libglx-mesa0 xvfb libgomp1
122
122
123
123
- name : Set up Python
124
- uses : actions/setup-python@v5
124
+ uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
125
125
with :
126
126
python-version : ${{ env.MAIN_PYTHON_VERSION }}
127
127
@@ -141,7 +141,7 @@ jobs:
141
141
pip install .[tests]
142
142
143
143
- name : Login to GitHub Packages
144
- uses : docker/login-action@v3
144
+ uses : docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
145
145
with :
146
146
registry : ghcr.io/ansys
147
147
username : ${{ github.actor }}
@@ -162,14 +162,14 @@ jobs:
162
162
163
163
- name : Upload Coverage Results
164
164
if : always()
165
- uses : actions/upload-artifact@v4
165
+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
166
166
with :
167
167
name : coverage-html-ubuntu
168
168
path : .cov/html
169
169
retention-days : 7
170
170
171
171
- name : Upload coverage to Codecov
172
- uses : codecov/codecov-action@v5
172
+ uses : codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
173
173
env :
174
174
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
175
175
with :
@@ -187,7 +187,7 @@ jobs:
187
187
needs : [doc-build, testing]
188
188
steps :
189
189
- name : " Build library source and wheel artifacts"
190
- uses : ansys/actions/build-library@v9
190
+ uses : ansys/actions/build-library@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
191
191
with :
192
192
library-name : ${{ env.PACKAGE_NAME }}
193
193
python-version : ${{ env.MAIN_PYTHON_VERSION }}
@@ -199,7 +199,7 @@ jobs:
199
199
needs : [build-library]
200
200
steps :
201
201
- name : " Deploy developers documentation"
202
- uses : ansys/actions/doc-deploy-dev@v9
202
+ uses : ansys/actions/doc-deploy-dev@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
203
203
with :
204
204
cname : ${{ env.DOCUMENTATION_CNAME }}
205
205
token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
@@ -213,7 +213,7 @@ jobs:
213
213
needs : [release]
214
214
steps :
215
215
- name : Deploy the stable documentation
216
- uses : ansys/actions/doc-deploy-stable@v9
216
+ uses : ansys/actions/doc-deploy-stable@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
217
217
with :
218
218
cname : ${{ env.DOCUMENTATION_CNAME }}
219
219
token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
@@ -232,21 +232,21 @@ jobs:
232
232
contents : write
233
233
steps :
234
234
- name : Download the library artifacts from build-library step
235
- uses : actions/download-artifact@v4
235
+ uses : actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
236
236
with :
237
237
name : ${{ env.PACKAGE_NAME }}-artifacts
238
238
path : ${{ env.PACKAGE_NAME }}-artifacts
239
239
240
240
- name : Release to PyPI using trusted publisher
241
- uses : pypa/gh-action-pypi-publish@v1
241
+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
242
242
with :
243
243
repository-url : " https://upload.pypi.org/legacy/"
244
244
print-hash : true
245
245
packages-dir : ${{ env.PACKAGE_NAME }}-artifacts
246
246
skip-existing : false
247
247
248
248
- name : Release to GitHub
249
- uses : ansys/actions/release-github@v9
249
+ uses : ansys/actions/release-github@4f15ff3ab1183912ce862d51b8c66ea124b052a1 # v9.0.2
250
250
with :
251
251
library-name : ${{ env.PACKAGE_NAME }}
252
252
token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments