diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index ab4b2b23c..7b0a7fa69 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -1,6 +1,7 @@ name: CI on: + workflow_dispatch: pull_request: push: tags: @@ -72,10 +73,33 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} python-version: ${{ env.MAIN_PYTHON_VERSION }} + smoke-tests: + name: Build and smoke tests + runs-on: ${{ matrix.os }} + needs: [code-style] + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + should-release: + - ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} + exclude: + - should-release: false + os: macos-latest + steps: + - name: "Build wheelhouse and perform smoke test" + uses: pyansys/actions/build-wheelhouse@v4 + with: + library-name: ${{ env.PACKAGE_NAME }} + library-namespace: ${{ env.PACKAGE_NAMESPACE }} + operating-system: ${{ matrix.os }} + python-version: ${{ matrix.python-version }} + build-library: name: "Build library" runs-on: ubuntu-latest - needs: [doc-build, code-style] + needs: [doc-build, smoke-tests] steps: - name: "Build library source and wheel artifacts" uses: pyansys/actions/build-library@v4