From c4690a7d51ea843059d4d3abea92866cf08babcc Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Tue, 6 Feb 2024 07:50:39 +0100 Subject: [PATCH 1/2] fix: stage dependencies --- .github/workflows/ci_cd.yml | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index ae2a5967c..953018eb7 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -107,33 +107,24 @@ jobs: retention-days: 7 smoke-tests: - if: ${{ !(github.event_name == 'push' && contains(github.ref, 'refs/tags')) }} name: Build and Smoke tests runs-on: ${{ matrix.os }} needs: [style] - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - python-version: ['3.10'] - steps: - - name: Build wheelhouse and perform smoke test - uses: ansys/actions/build-wheelhouse@v5 - with: - library-name: ${{ env.PACKAGE_NAME }} - operating-system: ${{ matrix.os }} - python-version: ${{ matrix.python-version }} - - smoke-tests-release: - if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} - name: Build and Smoke tests for release - runs-on: ${{ matrix.os }} - needs: [style] strategy: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] python-version: ['3.9', '3.10', '3.11', '3.12'] + should-release: + - ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }} + exclude: + - should-release: false + os: macos-latest + - should-release: false + os: windows-latest + - should-release: false + python-version: ['3.9', '3.11', '3.12'] + steps: - name: Build wheelhouse and perform smoke test uses: ansys/actions/build-wheelhouse@v5 From 773c9716a56595c567cc131c60f9849aa4da7fc3 Mon Sep 17 00:00:00 2001 From: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> Date: Tue, 6 Feb 2024 07:53:23 +0100 Subject: [PATCH 2/2] Update ci_cd.yml --- .github/workflows/ci_cd.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 953018eb7..159b79cf7 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -123,7 +123,11 @@ jobs: - should-release: false os: windows-latest - should-release: false - python-version: ['3.9', '3.11', '3.12'] + python-version: '3.9' + - should-release: false + python-version: '3.11' + - should-release: false + python-version: '3.12' steps: - name: Build wheelhouse and perform smoke test