|
1 | 1 | name: CI |
2 | 2 |
|
3 | 3 | on: |
| 4 | + workflow_dispatch: |
4 | 5 | pull_request: |
5 | 6 | push: |
6 | 7 | tags: |
@@ -72,10 +73,33 @@ jobs: |
72 | 73 | token: ${{ secrets.GITHUB_TOKEN }} |
73 | 74 | python-version: ${{ env.MAIN_PYTHON_VERSION }} |
74 | 75 |
|
| 76 | + smoke-tests: |
| 77 | + name: Build and smoke tests |
| 78 | + runs-on: ${{ matrix.os }} |
| 79 | + needs: [code-style] |
| 80 | + strategy: |
| 81 | + fail-fast: false |
| 82 | + matrix: |
| 83 | + os: [ubuntu-latest, windows-latest, macos-latest] |
| 84 | + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
| 85 | + should-release: |
| 86 | + - ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} |
| 87 | + exclude: |
| 88 | + - should-release: false |
| 89 | + os: macos-latest |
| 90 | + steps: |
| 91 | + - name: "Build wheelhouse and perform smoke test" |
| 92 | + uses: pyansys/actions/build-wheelhouse@v4 |
| 93 | + with: |
| 94 | + library-name: ${{ env.PACKAGE_NAME }} |
| 95 | + library-namespace: ${{ env.PACKAGE_NAMESPACE }} |
| 96 | + operating-system: ${{ matrix.os }} |
| 97 | + python-version: ${{ matrix.python-version }} |
| 98 | + |
75 | 99 | build-library: |
76 | 100 | name: "Build library" |
77 | 101 | runs-on: ubuntu-latest |
78 | | - needs: [doc-build, code-style] |
| 102 | + needs: [doc-build, smoke-tests] |
79 | 103 | steps: |
80 | 104 | - name: "Build library source and wheel artifacts" |
81 | 105 | uses: pyansys/actions/build-library@v4 |
|
90 | 114 | steps: |
91 | 115 |
|
92 | 116 | - name: "Release to the public PyPI repository" |
93 | | - uses: pyansys/actions/release-pypi-public@v3 |
| 117 | + uses: pyansys/actions/release-pypi-public@v4 |
94 | 118 | with: |
95 | 119 | library-name: ${{ env.PACKAGE_NAME }} |
96 | 120 | twine-username: "__token__" |
|
0 commit comments