Skip to content

Commit c24b4bb

Browse files
authored
ci/hotfix: pypi releasing (#16722)
1 parent 16fc948 commit c24b4bb

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

.github/workflows/release-pypi.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,23 @@ on:
66
branches: [master, "release/*"]
77
release:
88
types: [published]
9+
pull_request: # this shall test only the part of workflow before publishing
10+
branches: [master, "release/*"]
11+
types: [opened, reopened, ready_for_review, synchronize]
12+
paths:
13+
- '.github/actions/pkg-publish/*'
14+
- ".github/workflows/_legacy-checkpoints.yml.yml"
15+
- ".github/workflows/_build-packages.yml"
16+
- ".github/workflows/release-pypi.yml"
917

1018
defaults:
1119
run:
1220
shell: bash
1321

22+
env:
23+
FREEZE_REQUIREMENTS: 1
24+
TORCH_URL: "https://download.pytorch.org/whl/cpu/torch_stable.html"
25+
1426
jobs:
1527

1628
build-packages:
@@ -44,12 +56,12 @@ jobs:
4456
steps:
4557
- uses: actions/checkout@v3
4658
- name: install Package
47-
env:
48-
PACKAGE_NAME: "lightning"
49-
run: pip install . -f https://download.pytorch.org/whl/cpu/torch_stable.html
59+
run: |
60+
pip install . -f ${TORCH_URL}
61+
pip list
5062
- name: package Version
5163
id: lai-package
52-
run: python -c "import lightning as L; print(f'version={L.__version__}')" >> $GITHUB_OUTPUT
64+
run: python -c "import lightning ; print(f'version={lightning.__version__}')" >> $GITHUB_OUTPUT
5365

5466

5567
signaling:

0 commit comments

Comments
 (0)