1- ---
21name : GitHub CI
32
43on :
54 pull_request :
65 workflow_dispatch :
76 push :
87 tags :
9- - ' *'
8+ - ' *'
109 branches :
11- - main
10+ - main
1211
1312env :
1413 PACKAGE_NAME : ansys-tools-common
@@ -27,37 +26,37 @@ jobs:
2726 contents : write
2827 pull-requests : write
2928 steps :
30- - uses : ansys/actions/doc-changelog@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
31- with :
32- token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
33- bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
34- bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
29+ - uses : ansys/actions/doc-changelog@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
30+ with :
31+ token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
32+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
33+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
3534
3635 code-style :
3736 name : Code style
3837 runs-on : ubuntu-latest
3938 steps :
40- - uses : ansys/actions/code-style@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
41- with :
42- python-version : ${{ env.MAIN_PYTHON_VERSION }}
39+ - uses : ansys/actions/code-style@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
40+ with :
41+ python-version : ${{ env.MAIN_PYTHON_VERSION }}
4342
4443 doc-style :
4544 name : Doc style
4645 runs-on : ubuntu-latest
4746 steps :
48- - uses : ansys/actions/doc-style@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
49- with :
50- token : ${{ secrets.GITHUB_TOKEN }}
47+ - uses : ansys/actions/doc-style@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
48+ with :
49+ token : ${{ secrets.GITHUB_TOKEN }}
5150
5251 actions-style :
5352 name : Actions style
5453 runs-on : ubuntu-latest
5554 steps :
56- - uses : ansys/actions/check-actions-security@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
57- with :
58- generate-summary : true
59- token : ${{ secrets.GITHUB_TOKEN }}
60- auditing-level : high
55+ - uses : ansys/actions/check-actions-security@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
56+ with :
57+ generate-summary : true
58+ token : ${{ secrets.GITHUB_TOKEN }}
59+ auditing-level : high
6160
6261 wheelhouse :
6362 name : Wheelhouse / ${{ matrix.os }} /
@@ -69,12 +68,12 @@ jobs:
6968 os : [ubuntu-latest, windows-latest, macos-latest]
7069 python : ['3.10', '3.11', '3.12']
7170 steps :
72- - uses : ansys/actions/build-wheelhouse@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
73- with :
74- library-name : ${{ env.PACKAGE_NAME }}
75- operating-system : ${{ matrix.os }}
76- python-version : ${{ matrix.python }}
77- whitelist-license-check : termcolor # Has MIT license, but it's not recognized
71+ - uses : ansys/actions/build-wheelhouse@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
72+ with :
73+ library-name : ${{ env.PACKAGE_NAME }}
74+ operating-system : ${{ matrix.os }}
75+ python-version : ${{ matrix.python }}
76+ whitelist-license-check : termcolor # Has MIT license, but it's not recognized
7877
7978 tests :
8079 name : Testing
@@ -89,49 +88,49 @@ jobs:
8988 ANSYS_LOCAL : false
9089 ON_UBUNTU : true
9190 steps :
92- - name : Checkout repository
93- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
94- with :
95- persist-credentials : false
91+ - name : Checkout repository
92+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
93+ with :
94+ persist-credentials : false
9695
97- - name : Set up uv
98- uses : astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # 7.0.0
99- with :
100- python-version : ${{ env.MAIN_PYTHON_VERSION }}
101- enable-cache : false
96+ - name : Set up uv
97+ uses : astral-sh/setup-uv@eb1897b8dc4b5d5bfe39a428a8f2304605e0983c # 7.0.0
98+ with :
99+ python-version : ${{ env.MAIN_PYTHON_VERSION }}
100+ enable-cache : false
102101
103- - name : Install project dependencies
104- run : |
105- uv sync --group tests
102+ - name : Install project dependencies
103+ run : |
104+ uv sync --group tests
106105
107- - name : Install test package containing entrypoint
108- run : |
109- uv pip install tests/launcher/pkg_with_entrypoint
106+ - name : Install test package containing entrypoint
107+ run : |
108+ uv pip install tests/launcher/pkg_with_entrypoint
110109
111- - name : Run tests
112- run : |
113- uv run pytest
110+ - name : Run tests
111+ run : |
112+ uv run pytest
114113
115114 doc-build :
116115 name : Build documentation
117116 needs : doc-style
118117 runs-on : ubuntu-latest
119118 steps :
120- - uses : ansys/actions/doc-build@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
121- with :
122- python-version : ${{ env.MAIN_PYTHON_VERSION }}
123- check-links : false
124- group-dependencies-name : doc
119+ - uses : ansys/actions/doc-build@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
120+ with :
121+ python-version : ${{ env.MAIN_PYTHON_VERSION }}
122+ check-links : false
123+ group-dependencies-name : doc
125124
126125 build-library :
127126 name : Build library
128127 runs-on : ubuntu-latest
129128 needs : [doc-build, tests]
130129 steps :
131- - uses : ansys/actions/build-library@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
132- with :
133- library-name : ${{ env.PACKAGE_NAME }}
134- python-version : ${{ env.MAIN_PYTHON_VERSION }}
130+ - uses : ansys/actions/build-library@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
131+ with :
132+ library-name : ${{ env.PACKAGE_NAME }}
133+ python-version : ${{ env.MAIN_PYTHON_VERSION }}
135134
136135 release :
137136 name : Release project
@@ -143,38 +142,38 @@ jobs:
143142 id-token : write
144143 contents : write
145144 steps :
146- - name : Download artifacts
147- uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
148- with :
149- name : ${{ env.PACKAGE_NAME }}-artifacts
150- path : ${{ env.PACKAGE_NAME }}-artifacts
151-
152- - name : Release to the public PyPI
153- uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
154- with :
155- repository-url : https://upload.pypi.org/legacy/
156- print-hash : true
157- packages-dir : ${{ env.PACKAGE_NAME }}-artifacts
158- skip-existing : false
159-
160- - name : Release to GitHub
161- uses : ansys/actions/release-github@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
162- with :
163- token : ${{ secrets.GITHUB_TOKEN }}
164- library-name : ${{ env.PACKAGE_NAME }}
145+ - name : Download artifacts
146+ uses : actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
147+ with :
148+ name : ${{ env.PACKAGE_NAME }}-artifacts
149+ path : ${{ env.PACKAGE_NAME }}-artifacts
150+
151+ - name : Release to the public PyPI
152+ uses : pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
153+ with :
154+ repository-url : https://upload.pypi.org/legacy/
155+ print-hash : true
156+ packages-dir : ${{ env.PACKAGE_NAME }}-artifacts
157+ skip-existing : false
158+
159+ - name : Release to GitHub
160+ uses : ansys/actions/release-github@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
161+ with :
162+ token : ${{ secrets.GITHUB_TOKEN }}
163+ library-name : ${{ env.PACKAGE_NAME }}
165164
166165 doc-deploy-stable :
167166 name : Deploy stable docs
168167 if : github.event_name == 'push' && contains(github.ref, 'refs/tags')
169168 runs-on : ubuntu-latest
170169 needs : release
171170 steps :
172- - uses : ansys/actions/doc-deploy-stable@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
173- with :
174- cname : ${{ env.DOCUMENTATION_CNAME }}
175- token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
176- bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
177- bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
171+ - uses : ansys/actions/doc-deploy-stable@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
172+ with :
173+ cname : ${{ env.DOCUMENTATION_CNAME }}
174+ token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
175+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
176+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
178177
179178 deploy-changelog :
180179 name : Deploy changelog
@@ -185,10 +184,9 @@ jobs:
185184 contents : write
186185 pull-requests : write
187186 steps :
188- - uses : ansys/actions/doc-deploy-changelog@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
189- with :
190- token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
191- bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
192- bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
193-
187+ - uses : ansys/actions/doc-deploy-changelog@c2fa7c93f6883114e0e643599431b33d29f0b13f # v10.1.4
188+ with :
189+ token : ${{ secrets.PYANSYS_CI_BOT_TOKEN }}
190+ bot-user : ${{ secrets.PYANSYS_CI_BOT_USERNAME }}
191+ bot-email : ${{ secrets.PYANSYS_CI_BOT_EMAIL }}
194192
0 commit comments