Skip to content

Commit

Permalink
MAINT: generating wheelhouse (needed for GH release) (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue authored Apr 10, 2023
1 parent e6e96b8 commit 8d6e205
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
workflow_dispatch:
pull_request:
push:
tags:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8d6e205

Please sign in to comment.