add input var: extension-name

This commit is contained in:
smf
2024-04-08 17:03:16 +08:00
parent 71d17bbcf0
commit 44a807df25

View File

@@ -1,6 +1,10 @@
on:
workflow_call:
inputs:
extension-name:
required: true
type: string
artifact-name:
required: false
type: string
@@ -45,9 +49,9 @@ jobs:
set -eux
python -m pip install .[test]
pytest -vv -r ap --cov alab_project_ext
pytest -vv -r ap --cov ${{ inputs.extension-name }}
jupyter server extension list
jupyter server extension list 2>&1 | grep -ie "alab_project_ext.*OK"
jupyter server extension list 2>&1 | grep -ie "${{ inputs.extension-name }}.*OK"
jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "alab-project-ext.*OK"
@@ -59,7 +63,7 @@ jobs:
pip install build
python -m build
pip uninstall -y "alab_project_ext" jupyterlab
pip uninstall -y "${{ inputs.extension-name }}" jupyterlab
- name: Upload extension packages
uses: actions/upload-artifact@v4