Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/reusable-version-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down
2 changes: 2 additions & 0 deletions docs/developer/reusable-workflows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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::

Expand Down
Loading