From 4c5cc86cadd1a978d201ba5ebb4ac5439d513e01 Mon Sep 17 00:00:00 2001 From: Lee James O'Riordan Date: Mon, 29 Jul 2024 16:37:59 -0400 Subject: [PATCH 1/2] Update nightly builds to store wheels as artefact before upload (#6051) ### Before submitting Please complete the following checklist when submitting a PR: - [ ] All new features must include a unit test. If you've fixed a bug or added code that should be tested, add a test to the test directory! - [ ] All new functions and code must be clearly commented and documented. If you do make documentation changes, make sure that the docs build and render correctly by running `make docs`. - [ ] Ensure that the test suite passes, by running `make test`. - [ ] Add a new entry to the `doc/releases/changelog-dev.md` file, summarizing the change, and including a link back to the PR. - [ ] The PennyLane source code conforms to [PEP8 standards](https://www.python.org/dev/peps/pep-0008/). We check all of our code against [Pylint](https://www.pylint.org/). To lint modified files, simply `pip install pylint`, and then run `pylint pennylane/path/to/file.py`. When all the above are checked, delete everything above the dashed line and fill in the pull request template. ------------------------------------------------------------------------------------------------------------ **Context:** This PR updates the nightly wheel build and upload to store the intermediate wheels from one stage as artefacts, and reuse them in the upload stage. Fixes the failed upload due to missing package clone. **Description of the Change:** As above. **Benefits:** Fixes the currently failed TestPyPI wheel upload step as wheels are created, stored, then uploaded. **Possible Drawbacks:** **Related GitHub Issues:** --- .github/workflows/upload-nightly-release.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/upload-nightly-release.yml b/.github/workflows/upload-nightly-release.yml index 7fd739205cc..7e6d7127d4d 100644 --- a/.github/workflows/upload-nightly-release.yml +++ b/.github/workflows/upload-nightly-release.yml @@ -28,6 +28,16 @@ jobs: git commit -m "[no ci] bump nightly version" git push + - name: Build wheels + run: | + python -m pip install build + python -m build --wheel --outdir dist + + - uses: actions/upload-artifact@v3 + with: + name: nightly-wheels + path: ./dist/*.whl + upload: name: Upload wheels to TestPyPI needs: [setup] @@ -36,10 +46,10 @@ jobs: id-token: write # IMPORTANT: mandatory for trusted publishing steps: - - name: Build wheels - run: | - python -m pip install build - python -m build --wheel --outdir dist + - uses: actions/download-artifact@v3 + with: + name: nightly-wheels + path: dist - name: Upload wheels uses: pypa/gh-action-pypi-publish@release/v1 From 944fada18786b56b378dc1e2ea4de9b48aa7e388 Mon Sep 17 00:00:00 2001 From: ringo-but-quantum Date: Mon, 29 Jul 2024 21:05:20 +0000 Subject: [PATCH 2/2] [no ci] bump nightly version --- pennylane/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pennylane/_version.py b/pennylane/_version.py index 27275454780..e905159648e 100644 --- a/pennylane/_version.py +++ b/pennylane/_version.py @@ -16,4 +16,4 @@ Version number (major.minor.patch[-label]) """ -__version__ = "0.38.0-dev3" +__version__ = "0.38.0-dev4"