diff --git a/.github/workflows/reusable-version-branch.yml b/.github/workflows/reusable-version-branch.yml index 7abd0da6..be60ded4 100644 --- a/.github/workflows/reusable-version-branch.yml +++ b/.github/workflows/reusable-version-branch.yml @@ -7,6 +7,11 @@ on: description: 'The name of the module' required: true type: string + install_package: + description: 'Whether to install the package' + required: false + type: boolean + default: false jobs: replicate: @@ -19,12 +24,17 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: '3.10' - name: Install dependencies run: | python -m pip install --upgrade pip + - name: Install package if required + if: ${{ inputs.install_package }} + run: | + pip install . + - name: Get version id: get_version run: | diff --git a/docs/developer/reusable-workflows.rst b/docs/developer/reusable-workflows.rst index cd709b9b..322592e9 100644 --- a/docs/developer/reusable-workflows.rst +++ b/docs/developer/reusable-workflows.rst @@ -40,6 +40,8 @@ example: with: # The name of the Python package (required) module_name: openwisp_utils + # Whether to install the Python package. Defaults to false. + install_package: true .. note::