-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not modify PACKAGE_NAME on install (#15493)
* Do not modify PACKAGE_NAME on install * Fix ci pkg action * Required * Typos * Apply suggestions from code review * Undo defaults * Cleanup * Implement idea * Fuck * Apps mock fix * Fix app-pytest with PKG_NAME=app * Justus suggestion * Debug Windows * Update setup.py Co-authored-by: Adrian Wälchli <[email protected]> * Revert "Debug Windows" This reverts commit 9fe3ba3. * SSH action * Crazy bug * Revert "SSH action" This reverts commit 5061e8e. * Package import step * Avoid env conflict * Debug * Whitespace * Try removing existing lite build * This should be redundant now * Add back env now that source-lit is gone * Remove download artifact * checkgroup * TODOs suggested by Jirka * _ * Revert "_". These are local variables, do not need protected This reverts commit 8340b85. Co-authored-by: Jirka Borovec <[email protected]> Co-authored-by: Adrian Wälchli <[email protected]> (cherry picked from commit f392180)
- Loading branch information
Showing
21 changed files
with
91 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,35 @@ | ||
name: Install and check package | ||
description: installing and validationg the package | ||
name: Install and validate the package | ||
description: Install and validate the package | ||
|
||
inputs: | ||
pkg-name: | ||
description: package name for import | ||
required: false | ||
default: "" | ||
description: Package name to import | ||
required: true | ||
pip-flags: | ||
description: additional pil install flags | ||
description: Additional pip install flags | ||
required: false | ||
default: "" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Determine package name | ||
if: ${{ inputs.pkg-import == '' }} | ||
working-directory: ./dist | ||
run: python -c "import glob ; ls = glob.glob('*.tar.gz') ; name = '_'.join(ls[0].split('-')[:-1]) ; print(f'PKG_NAME={name}')" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Pass package name | ||
if: ${{ inputs.pkg-import != '' }} | ||
run: echo "PKG_NAME=${{ inputs.pkg-name }}" >> $GITHUB_ENV | ||
- name: Choose package import | ||
run: | | ||
python -c "print('PKG_IMPORT=' + {'app': 'lightning_app', 'lite': 'lightning_lite', 'pytorch': 'pytorch_lightning', 'lightning': 'lightning'}['${{matrix.pkg-name}}'])" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- name: Install package - archive | ||
working-directory: ./dist | ||
run: | | ||
pip install *.tar.gz ${{ inputs.pip-flags }} | ||
pip list | grep lightning | ||
python -c "import ${PKG_NAME} ; print(${PKG_NAME}.__version__)" | ||
python -c "import ${{ env.PKG_IMPORT }}; print(${{ env.PKG_IMPORT }}.__version__)" | ||
shell: bash | ||
|
||
- name: Install package - wheel | ||
working-directory: ./dist | ||
run: | | ||
pip install *.whl ${{ inputs.pip-flags }} | ||
pip list | grep lightning | ||
python -c "import ${PKG_NAME} ; print(${PKG_NAME}.__version__)" | ||
python -c "import ${{ env.PKG_IMPORT }}; print(${{ env.PKG_IMPORT }}.__version__)" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.