Skip to content

Commit 1bc81e3

Browse files
committed
update nightly & upgrade Twine (#5458)
* update used Twine * . * . * install * install * . * . * . * . * . * . Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> (cherry picked from commit 9611a7f)
1 parent e5711c0 commit 1bc81e3

File tree

13 files changed

+33
-37
lines changed

13 files changed

+33
-37
lines changed

.github/prepare-nightly_pkg-name.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/ci_pkg-install.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Install pkg
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches: [master, "release/*"] # include release branches like release/1.0.x
6+
branches: [master, "release/*"]
77
pull_request:
88
branches: [master, "release/*"]
99

@@ -27,13 +27,13 @@ jobs:
2727

2828
- name: Prepare env
2929
run: |
30-
pip install check-manifest "twine>=3.2"
30+
pip install check-manifest "twine==3.2" setuptools wheel
3131
3232
- name: Create package
3333
run: |
3434
check-manifest
3535
# python setup.py check --metadata --strict
36-
python setup.py sdist
36+
python setup.py sdist bdist_wheel
3737
3838
- name: Check package
3939
run: |
@@ -46,12 +46,18 @@ jobs:
4646
# this is just a hotfix because of Win cannot install it directly
4747
pip install -r requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
4848
49-
- name: Install package
49+
- name: Install | Uninstall package - archive
50+
run: |
51+
# install as archive
52+
pip install dist/*.tar.gz
53+
cd ..
54+
python -c "import pytorch_lightning as pl ; print(pl.__version__)"
55+
pip uninstall -y pytorch-lightning
56+
57+
- name: Install | Uninstall package - wheel
5058
run: |
51-
# pip install virtualenv
52-
# virtualenv vEnv --system-site-packages
53-
# source vEnv/bin/activate
54-
pip install dist/*
55-
cd .. & python -c "import pytorch_lightning as pl ; print(pl.__version__)"
56-
# deactivate
57-
# rm -rf vEnv
59+
# install as wheel
60+
pip install dist/*.whl
61+
cd ..
62+
python -c "import pytorch_lightning as pl ; print(pl.__version__)"
63+
pip uninstall -y pytorch-lightning

.github/workflows/ci_test-base.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI basic testing
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches: [master, "release/*"] # include release branches like release/1.0.x
6+
branches: [master, "release/*"]
77
pull_request:
88
branches: [master, "release/*"]
99

.github/workflows/ci_test-conda.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PyTorch & Conda
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches: [master, "release/*"] # include release branches like release/1.0.x
6+
branches: [master, "release/*"]
77
pull_request:
88
branches: [master, "release/*"]
99

.github/workflows/ci_test-full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI complete testing
33
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches: [master, "release/*"] # include release branches like release/1.0.x
6+
branches: [master, "release/*"]
77
pull_request:
88
branches: [master, "release/*"]
99

.github/workflows/ci_test-tpu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: TPU tests
22

33
on:
44
push:
5-
branches: [master, "release/*"] # include release branches like release/1.0.x
5+
branches: [master, "release/*"]
66
# TODO: temporal disable TPU testing until we find way how to pass credentials to forked PRs
77
# pull_request:
88
# branches:

.github/workflows/code-formatting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Check Code Format"
22

33
on: # Trigger the workflow on push or pull request, but only for the master branch
44
push:
5-
branches: [master, "release/*"] # include release branches like release/1.0.x
5+
branches: [master, "release/*"]
66
pull_request:
77
branches: [master, "release/*"]
88

.github/workflows/docs-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Docs check"
33

44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches: [master, "release/*"] # include release branches like release/1.0.x
6+
branches: [master, "release/*"]
77
pull_request:
88
branches: [master, "release/*"]
99

.github/workflows/release-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish Docker Releases
33
# https://github.com/docker/build-push-action
44
on:
55
push:
6-
branches: [master, "release/*"] # include release branches like release/1.0.x
6+
branches: [master, "release/*"]
77
release:
88
types: [created]
99

.github/workflows/release-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: PyPI Release
33
# https://help.github.com/en/actions/reference/events-that-trigger-workflows
44
on: # Trigger the workflow on push or pull request, but only for the master branch
55
push:
6-
branches: [master, "release/*"] # include release branches like release/1.0.x
6+
branches: [master, "release/*"]
77
release:
88
types: [created]
99

0 commit comments

Comments
 (0)