From c24b4bbfab032777d6879a5c9694bc8f63f47172 Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Sat, 11 Feb 2023 01:55:35 +0900 Subject: [PATCH] ci/hotfix: pypi releasing (#16722) --- .github/workflows/release-pypi.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 8634149784f6d..3529e687cd72f 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -6,11 +6,23 @@ on: branches: [master, "release/*"] release: types: [published] + pull_request: # this shall test only the part of workflow before publishing + branches: [master, "release/*"] + types: [opened, reopened, ready_for_review, synchronize] + paths: + - '.github/actions/pkg-publish/*' + - ".github/workflows/_legacy-checkpoints.yml.yml" + - ".github/workflows/_build-packages.yml" + - ".github/workflows/release-pypi.yml" defaults: run: shell: bash +env: + FREEZE_REQUIREMENTS: 1 + TORCH_URL: "https://download.pytorch.org/whl/cpu/torch_stable.html" + jobs: build-packages: @@ -44,12 +56,12 @@ jobs: steps: - uses: actions/checkout@v3 - name: install Package - env: - PACKAGE_NAME: "lightning" - run: pip install . -f https://download.pytorch.org/whl/cpu/torch_stable.html + run: | + pip install . -f ${TORCH_URL} + pip list - name: package Version id: lai-package - run: python -c "import lightning as L; print(f'version={L.__version__}')" >> $GITHUB_OUTPUT + run: python -c "import lightning ; print(f'version={lightning.__version__}')" >> $GITHUB_OUTPUT signaling: