From 9cbd70f96dcc58be55a40480eade692e58805eb0 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Fri, 17 Nov 2023 14:53:55 -0500 Subject: [PATCH] DNM: test wheel builds --- .github/workflows/wheels.yml | 89 +----------------------------------- 1 file changed, 2 insertions(+), 87 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 6bd929c5174c..21b570b13a32 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -1,14 +1,12 @@ --- name: Wheel Builds on: - push: - tags: - - '*' + pull_request: + branches: ['stable/0.45'] jobs: build_wheels: name: Build wheels runs-on: ${{ matrix.os }} - environment: release strategy: fail-fast: false matrix: @@ -29,7 +27,6 @@ jobs: build_wheels_macos_arm: name: Build wheels on macOS arm runs-on: ${{ matrix.os }} - environment: release strategy: fail-fast: false matrix: @@ -53,26 +50,9 @@ jobs: with: path: ./wheelhouse/*.whl name: shared-wheel-builds - upload_shared_wheels: - name: Upload shared build wheels - runs-on: ubuntu-latest - environment: release - permissions: - id-token: write - needs: ["build_wheels", "build_wheels_macos_arm"] - steps: - - uses: actions/download-artifact@v3 - with: - name: shared-wheel-builds - path: deploy - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: deploy build_wheels_s390x: name: Build wheels on s390x runs-on: ${{ matrix.os }} - environment: release permissions: id-token: write strategy: @@ -98,14 +78,9 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse/ build_wheels_ppc64le: name: Build wheels on ppc64le runs-on: ${{ matrix.os }} - environment: release permissions: id-token: write strategy: @@ -131,14 +106,9 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse/ build_wheels_aarch64: name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} - environment: release permissions: id-token: write strategy: @@ -163,58 +133,3 @@ jobs: - uses: actions/upload-artifact@v3 with: path: ./wheelhouse/*.whl - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: wheelhouse/ - sdist: - name: Build and publish terra sdist - runs-on: ${{ matrix.os }} - needs: ["upload_shared_wheels"] - environment: release - permissions: - id-token: write - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - name: Install Python - with: - python-version: '3.10' - - name: Install deps - run: pip install -U twine setuptools-rust wheel build - - name: Build sdist - run: python -m build . --sdist - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - metapackage: - name: Build and publish terra sdist - runs-on: ${{ matrix.os }} - needs: ["sdist"] - environment: release - permissions: - id-token: write - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 - name: Install Python - with: - python-version: '3.10' - - name: Install deps - run: pip install -U twine setuptools-rust wheel build - - name: Build packages - run: | - set -e - cd qiskit_pkg - python -m build . - - name: Publish package distributions to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - packages-dir: qiskit_pkg/dist