CI: Remove waiting logic in release workflow (#20050)

This commit is contained in:
awaelchli 2024-07-05 15:25:29 +02:00 committed by GitHub
parent 330af381de
commit 3730e980e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 36 deletions

View File

@ -98,7 +98,6 @@ body:
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):
```
</details>

View File

@ -130,34 +130,6 @@ jobs:
ethanwharris
borda
waiting:
runs-on: ubuntu-22.04
needs: [release-version, signaling]
env:
TAG: ${{ needs.release-version.outputs.tag }}
# due to PR process this may take longer
timeout-minutes: 180
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VER }}
- run: pip install gitpython
- name: Delay releasing
run: |
import git, os, time
repo = git.Repo('.')
branch = f"origin/builds/{os.getenv('TAG')}"
while True:
remote_refs = [b.name for b in repo.remote().refs]
print([n for n in remote_refs if "builds" in n])
if branch in remote_refs:
break
time.sleep(60)
for remote in repo.remotes:
remote.fetch()
shell: python
pre-publish-packages:
runs-on: ubuntu-22.04
needs: build-packages
@ -185,7 +157,7 @@ jobs:
publish-packages:
runs-on: ubuntu-22.04
needs: [build-packages, waiting]
needs: [build-packages]
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
strategy:
fail-fast: false

View File

@ -1,6 +0,0 @@
coverage ==7.3.1
pytest ==7.4.0
pytest-cov ==4.1.0
pytest-timeout ==2.1.0
pytest-rerunfailures ==12.0
pytest-random-order ==1.1.0