Skip to content

Commit 59bafd9

Browse files
committed
Merge branch 'main' into release/0.9
2 parents dfbfa2d + 8d6e205 commit 59bafd9

File tree

8 files changed

+27
-3
lines changed

8 files changed

+27
-3
lines changed

.github/workflows/ci_cd.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: CI
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
push:
67
tags:
@@ -72,10 +73,33 @@ jobs:
7273
token: ${{ secrets.GITHUB_TOKEN }}
7374
python-version: ${{ env.MAIN_PYTHON_VERSION }}
7475

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+
7599
build-library:
76100
name: "Build library"
77101
runs-on: ubuntu-latest
78-
needs: [doc-build, code-style]
102+
needs: [doc-build, smoke-tests]
79103
steps:
80104
- name: "Build library source and wheel artifacts"
81105
uses: pyansys/actions/build-library@v4
@@ -90,7 +114,7 @@ jobs:
90114
steps:
91115

92116
- name: "Release to the public PyPI repository"
93-
uses: pyansys/actions/release-pypi-public@v3
117+
uses: pyansys/actions/release-pypi-public@v4
94118
with:
95119
library-name: ${{ env.PACKAGE_NAME }}
96120
twine-username: "__token__"

.github/workflows/label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
runs-on: ubuntu-latest
6868
steps:
6969
- name: Suggest to add labels
70-
uses: peter-evans/create-or-update-comment@v2
70+
uses: peter-evans/create-or-update-comment@v3
7171
# Execute only when no labels have been applied to the pull request
7272
if: toJSON(github.event.pull_request.labels.*.name) == '{}'
7373
with:
-9.61 KB
Loading
-7.29 KB
Loading
-11 KB
Loading
-3.65 KB
Loading
-9.17 KB
Loading
-1.77 KB
Loading

0 commit comments

Comments
 (0)