@@ -43,26 +43,32 @@ jobs:
4343 # python-package-name: ${{ env.PACKAGE_NAME }}
4444 # dev-mode: ${{ github.ref != 'refs/heads/main' }}
4545
46- style :
46+ code- style :
4747 name : Code style
4848 runs-on : ubuntu-latest
4949 steps :
50- - name : PyAnsys code style checks
51- uses : ansys/actions/code-style@v10
50+ - uses : ansys/actions/code-style@v10
5251 with :
5352 python-version : ${{ env.MAIN_PYTHON_VERSION }}
5453
55- smoke-tests :
56- name : Build and Smoke tests
54+ docs-style :
55+ name : Documentation Style Check
56+ runs-on : ubuntu-latest
57+ steps :
58+ - uses : ansys/actions/doc-style@v10
59+ with :
60+ token : ${{ secrets.GITHUB_TOKEN }}
61+
62+ wheelhouse :
63+ name : Wheelhouse / ${{ matrix.os }} /
5764 runs-on : ${{ matrix.os }}
5865 strategy :
5966 fail-fast : false
6067 matrix :
6168 os : [ubuntu-latest, windows-latest, macos-latest]
6269 python-version : ['3.10', '3.11', '3.12']
6370 steps :
64- - name : Build wheelhouse and perform smoke test
65- uses : ansys/actions/build-wheelhouse@v10
71+ - uses : ansys/actions/build-wheelhouse@v10
6672 with :
6773 library-name : ${{ env.PACKAGE_NAME }}
6874 operating-system : ${{ matrix.os }}
@@ -72,14 +78,15 @@ jobs:
7278 tests :
7379 name : Testing
7480 runs-on : ubuntu-latest
75- needs : [smoke-tests]
81+ needs : wheelhouse
7682 env :
7783 ANSYS_LOCAL : false
7884 ON_UBUNTU : true
79-
8085 steps :
86+ -
uses :
ansys/actions/[email protected] 8187 - name : Checkout repository
8288 uses : actions/checkout@v3
89+
8390 - name : Set up Python
8491 uses : actions/setup-python@v4
8592 with :
@@ -104,22 +111,12 @@ jobs:
104111 # with:
105112 # token: ${{ secrets.CODECOV_TOKEN }}
106113
107- docs-style :
108- name : Documentation Style Check
109- runs-on : ubuntu-latest
110- steps :
111- - name : PyAnsys documentation style checks
112- uses : ansys/actions/doc-style@v10
113- with :
114- token : ${{ secrets.GITHUB_TOKEN }}
115-
116114 doc-build :
117115 name : Build documentation
118116 needs : [docs-style]
119117 runs-on : ubuntu-latest
120118 steps :
121- - name : Build documentation
122- uses : ansys/actions/doc-build@v10
119+ - uses : ansys/actions/doc-build@v10
123120 with :
124121 python-version : ${{ env.MAIN_PYTHON_VERSION }}
125122 check-links : false # Delete after first release
@@ -129,8 +126,7 @@ jobs:
129126 runs-on : ubuntu-latest
130127 needs : [tests, doc-build]
131128 steps :
132- - name : Build library source and wheel artifacts
133- uses : ansys/actions/build-library@v10
129+ - uses : ansys/actions/build-library@v10
134130 with :
135131 library-name : ${{ env.PACKAGE_NAME }}
136132 python-version : ${{ env.MAIN_PYTHON_VERSION }}
0 commit comments