From 06a76f71e0d77e3b6121e1d6af5c38dfa7014bf9 Mon Sep 17 00:00:00 2001 From: Aaron <29749331+aarnphm@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:38:03 -0400 Subject: [PATCH 1/3] chore: upload nightly wheels to test.pypi.org Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- .github/workflows/compile-pypi.yml | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/compile-pypi.yml b/.github/workflows/compile-pypi.yml index e2e8c742c..4b212b2ed 100644 --- a/.github/workflows/compile-pypi.yml +++ b/.github/workflows/compile-pypi.yml @@ -132,6 +132,44 @@ jobs: path: dist - name: dry ls run: ls -rthlaR + push-nightly: + name: Push nightly wheels + if: >- + !github.event.repository.fork && (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/v') + runs-on: ubuntu-latest + permissions: + id-token: write + steps: + # NOTE: Keep this section in sync with compile-pypi.yml + - name: Download Python artifacts + uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3 + with: + name: python-artefacts + path: dist + - name: Download Linux x86_64 compiled artifacts + uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3 + with: + name: linux-x86_64-mypyc-wheels + path: dist + - name: Download MacOS x86_64 compiled artifacts + uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3 + with: + name: macos-x86_64-mypyc-wheels + path: dist + - name: Download MacOS arm64 compiled artifacts + uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3 + with: + name: macos-arm64-mypyc-wheels + path: dist + - name: Download MacOS universal2 compiled artifacts + uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3 + with: + name: macos-universal2-mypyc-wheels + path: dist + - name: Publish nightly wheels to test.pypi.org + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ sucess-build: # https://github.com/marketplace/actions/alls-green#why if: always() needs: From 2a9ce2ad2b83c8fa0356e11f83023822850020e6 Mon Sep 17 00:00:00 2001 From: Aaron <29749331+aarnphm@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:40:25 -0400 Subject: [PATCH 2/3] chore: update changelog and correct url to simple Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- .github/workflows/compile-pypi.yml | 6 ++---- changelog.d/215.feature.md | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 changelog.d/215.feature.md diff --git a/.github/workflows/compile-pypi.yml b/.github/workflows/compile-pypi.yml index 4b212b2ed..4c14e8108 100644 --- a/.github/workflows/compile-pypi.yml +++ b/.github/workflows/compile-pypi.yml @@ -104,7 +104,6 @@ jobs: needs: [pure-wheels-sdist, mypyc] runs-on: ubuntu-latest steps: - # NOTE: Keep this section in sync with compile-pypi.yml - name: Download Python artifacts uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3 with: @@ -135,12 +134,11 @@ jobs: push-nightly: name: Push nightly wheels if: >- - !github.event.repository.fork && (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/v') + !github.event.repository.fork && (github.event_name == 'push' && startsWith(github.ref, 'refs/main') runs-on: ubuntu-latest permissions: id-token: write steps: - # NOTE: Keep this section in sync with compile-pypi.yml - name: Download Python artifacts uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # ratchet:actions/download-artifact@v3 with: @@ -169,7 +167,7 @@ jobs: - name: Publish nightly wheels to test.pypi.org uses: pypa/gh-action-pypi-publish@release/v1 with: - repository-url: https://test.pypi.org/legacy/ + repository-url: https://test.pypi.org/simple/ sucess-build: # https://github.com/marketplace/actions/alls-green#why if: always() needs: diff --git a/changelog.d/215.feature.md b/changelog.d/215.feature.md new file mode 100644 index 000000000..48b52be65 --- /dev/null +++ b/changelog.d/215.feature.md @@ -0,0 +1,5 @@ +Nightly wheels now can be installed via `test.pypi.org`: + +```bash +pip install -i https://test.pypi.org/simple/ openllm +``` From 9d98d4e298f21d191c5e5fd4157904ad09ab79cb Mon Sep 17 00:00:00 2001 From: Aaron <29749331+aarnphm@users.noreply.github.com> Date: Tue, 15 Aug 2023 19:17:16 -0400 Subject: [PATCH 3/3] chore: lock actions [skip ci] Signed-off-by: Aaron <29749331+aarnphm@users.noreply.github.com> --- .github/workflows/compile-pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/compile-pypi.yml b/.github/workflows/compile-pypi.yml index 4c14e8108..a8d248a7b 100644 --- a/.github/workflows/compile-pypi.yml +++ b/.github/workflows/compile-pypi.yml @@ -165,7 +165,7 @@ jobs: name: macos-universal2-mypyc-wheels path: dist - name: Publish nightly wheels to test.pypi.org - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e # ratchet:pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/simple/ sucess-build: # https://github.com/marketplace/actions/alls-green#why