Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GH actions #476

Merged
merged 5 commits into from
Aug 21, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/wheel_linux_aarch64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,29 +162,29 @@ jobs:
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl

upload-pypi:
needs: linux-wheels-aarch64
matrix:
os: [ubuntu-latest]
arch: [aarch64]
pl_backend: ["lightning_qubit"]
runs-on: ${{ matrix.os }}
strategy:
matrix:
arch: [aarch64]
pl_backend: ["lightning_qubit"]
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest

if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
steps:
- uses: actions/download-artifact@v3
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
name: Linux-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: dist

- name: Upload wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
18 changes: 9 additions & 9 deletions .github/workflows/wheel_linux_ppc64le.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,29 +154,29 @@ jobs:
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl

upload-pypi:
needs: linux-wheels-ppc64le
matrix:
os: [ubuntu-latest]
arch: [ppc64le]
pl_backend: ["lightning_qubit"]
runs-on: ${{ matrix.os }}
strategy:
matrix:
arch: [ppc64le]
pl_backend: ["lightning_qubit"]
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ubuntu-latest

if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}

steps:
- uses: actions/download-artifact@v3
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
name: Linux-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: dist

- name: Upload wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
11 changes: 5 additions & 6 deletions .github/workflows/wheel_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}

with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl
Expand All @@ -189,21 +189,20 @@ jobs:
needs: linux-wheels-x86-64
strategy:
matrix:
os: [ubuntu-latest]
arch: [x86_64]
pl_backend: ["lightning_qubit"]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}

steps:
- uses: actions/download-artifact@v3
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
name: Linux-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: dist

- name: Upload wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
11 changes: 5 additions & 6 deletions .github/workflows/wheel_macos_arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
python -m twine check ./wheelhouse/*.whl

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}

with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl
Expand All @@ -121,21 +121,20 @@ jobs:
needs: mac-wheels-arm64
strategy:
matrix:
os: [macos-11]
arch: [arm64]
pl_backend: ["lightning_qubit"]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}

steps:
- uses: actions/download-artifact@v3
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
name: macOS-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: dist

- name: Upload wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
11 changes: 5 additions & 6 deletions .github/workflows/wheel_macos_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}

with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl
Expand All @@ -179,21 +179,20 @@ jobs:
needs: mac-wheels-x86
strategy:
matrix:
os: [macos-12]
arch: [x86_64]
pl_backend: ["lightning_qubit"]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}

steps:
- uses: actions/download-artifact@v3
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
name: macOS-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: dist

- name: Upload wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
8 changes: 4 additions & 4 deletions .github/workflows/wheel_noarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
python -m twine check main/dist/*.whl

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' }}
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
with:
name: pure-python-wheels-${{ matrix.pl_backend }}.zip
path: main/dist/*.whl
Expand All @@ -69,9 +69,9 @@ jobs:
strategy:
matrix:
pl_backend: ["lightning_qubit"]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

if: ${{ github.event_name == 'release' }}
# if: ${{ github.event_name == 'release' }}
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
steps:
- uses: actions/download-artifact@v3
with:
Expand All @@ -83,4 +83,4 @@ jobs:
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
11 changes: 5 additions & 6 deletions .github/workflows/wheel_win_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
regex: '.*[0-9]+.[0-9]+.[0-9]+[-_]?rc[0-9]+'

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master' || steps.rc_build.outputs.match != ''}}
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: ./wheelhouse/*.whl
Expand All @@ -185,21 +185,20 @@ jobs:
needs: win-wheels
strategy:
matrix:
os: [windows-2022]
arch: [AMD64]
pl_backend: ["lightning_qubit"]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest

if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
# if: ${{ github.event_name == 'release' || github.ref == 'refs/heads/master'}}
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
steps:
- uses: actions/download-artifact@v3
with:
name: ${{ runner.os }}-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
name: Windows-wheels-${{ matrix.pl_backend }}-${{ matrix.arch }}.zip
path: dist

- name: Upload wheels to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/
2 changes: 1 addition & 1 deletion pennylane_lightning/core/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
Version number (major.minor.patch[-label])
"""

__version__ = "0.32.0-dev6"
__version__ = "0.32.0-dev7"
AmintorDusko marked this conversation as resolved.
Show resolved Hide resolved
Loading