Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci/hotfix: pypi releasing #16722

Merged
merged 7 commits into from
Feb 10, 2023
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 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:
Borda marked this conversation as resolved.
Show resolved Hide resolved
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 Expand Up @@ -170,6 +182,7 @@ jobs:
legacy-checkpoints:
needs: [build-packages]
uses: ./.github/workflows/_legacy-checkpoints.yml
if: github.event_name != 'pull_request'
Borda marked this conversation as resolved.
Show resolved Hide resolved
with:
push_to_s3: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
create_pr: ${{ startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release' }}
Expand Down