Skip to content

Commit

Permalink
split import
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Nov 6, 2024
1 parent c86863f commit 6ee53fd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/actions/pkg-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@ runs:
pip list
shell: bash

- name: package check
- name: package check / import
if: ${{ inputs.import-name != '' }}
run: |
set -ex
python -c "import ${{ inputs.import-name }} as pkg; print(f'version: {pkg.__version__}')"
shell: bash

- name: package check / custom import
if: ${{ inputs.custom-import != '' }}
run: |
python -c '${{ inputs.custom-import }}'
shell: bash

Expand Down

0 comments on commit 6ee53fd

Please sign in to comment.