@@ -3,7 +3,7 @@ name: Install pkg
33# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
44on : # 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
0 commit comments