diff --git a/.github/actions/pkg-install/action.yml b/.github/actions/pkg-install/action.yml index 66b4cbf9..100a52e8 100644 --- a/.github/actions/pkg-install/action.yml +++ b/.github/actions/pkg-install/action.yml @@ -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