Skip to content

Commit

Permalink
ci/hotfix: pypi releasing (#16722)
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda authored Feb 10, 2023
1 parent 16fc948 commit c24b4bb
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c24b4bb

Please sign in to comment.