26 lines
730 B
YAML
26 lines
730 B
YAML
name: Install Python Environment
|
|
description: Set up a Python virtual environment and install required packages
|
|
inputs:
|
|
PLUGIN_REPO_NAME:
|
|
description: "Name of the plugin repository to install dependencies for"
|
|
required: true
|
|
default: ""
|
|
PYTHON_VERSION:
|
|
description: "Python version to use"
|
|
required: false
|
|
default: "3.11"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ inputs.PYTHON_VERSION }}
|
|
- name: Install Python Environment
|
|
shell: bash
|
|
run: |
|
|
SCRIPT_PATH="${{ github.action_path }}/run_ci.sh"
|
|
chmod +x "$SCRIPT_PATH"
|
|
"$SCRIPT_PATH" "${{ inputs.PLUGIN_REPO_NAME }}"
|