diff --git a/action.yml b/action.yml index 1cb2379..975a66f 100644 --- a/action.yml +++ b/action.yml @@ -37,6 +37,10 @@ runs: shell: bash id: plugin_checkout run: | + # Echo inputs for debugging + echo "Running BEC Plugin Repo composite action" + echo "BEC_PLUGIN_REPO_URL: ${{ inputs.BEC_PLUGIN_REPO_URL }}" + # Create log directory OUTPUT_DIR="$PWD/outputs" # absolute path LOG_FILE="${OUTPUT_DIR}/checkout.log" @@ -64,11 +68,16 @@ runs: echo "Plugin repository name: $PLUGIN_REPO_NAME" echo "Exit Code: 0" >> $LOG_FILE + echo "Completed BEC Plugin Repo checkout" - name: Checkout BEC Core shell: bash id: bec_core_checkout run: | + # Echo inputs for debugging + echo "Running BEC Core checkout" + echo "BEC_CORE_BRANCH: ${{ inputs.BEC_CORE_BRANCH }}" + # Create log directory OUTPUT_DIR="$PWD/outputs" # absolute path LOG_FILE="${OUTPUT_DIR}/checkout_bec_core.log" @@ -89,6 +98,7 @@ runs: fi echo "Exit Code: 0" >> $LOG_FILE + echo "Completed BEC Core checkout" cd ../ @@ -96,6 +106,10 @@ runs: shell: bash id: ophyd_devices_checkout run: | + # Echo inputs for debugging + echo "Running Ophyd Devices checkout" + echo "OPHYD_DEVICES_BRANCH: ${{ inputs.OPHYD_DEVICES_BRANCH }}" + # Create log directory OUTPUT_DIR="$PWD/outputs" # absolute path LOG_FILE="${OUTPUT_DIR}/checkout_ophyd_devices.log" @@ -117,12 +131,18 @@ runs: echo "Exit Code: 0" >> $LOG_FILE + echo "Completed Ophyd Devices checkout" + cd ../ - name: Checkout BEC Widgets shell: bash id: bec_widgets_checkout run: | + # Echo inputs for debugging + echo "Running BEC Widgets checkout" + echo "BEC_WIDGETS_BRANCH: ${{ inputs.BEC_WIDGETS_BRANCH }}" + # Create log directory OUTPUT_DIR="$PWD/outputs" # absolute path LOG_FILE="${OUTPUT_DIR}/checkout_bec_widgets.log" @@ -145,12 +165,17 @@ runs: echo "Exit Code: 0" >> $LOG_FILE + echo "Completed BEC Widgets checkout" cd ../ - name: Install APT_PACKAGES if: ${{ inputs.APT_PACKAGES != '' }} shell: bash run: | + # Echo inputs for debugging + echo "Installing APT packages" + echo "APT_PACKAGES: ${{ inputs.APT_PACKAGES }}" + # Create log directory OUTPUT_DIR="$PWD/outputs" # absolute path LOG_FILE="${OUTPUT_DIR}/install_apt_packages.log" @@ -160,6 +185,7 @@ runs: sudo apt-get install -y ${{ inputs.APT_PACKAGES }} >> $LOG_FILE 2>&1 echo "Exit Code: 0" >> $LOG_FILE + echo "Completed APT package installation" - name: Setup Python uses: actions/setup-python@v4 @@ -169,6 +195,10 @@ runs: - name: Install Python dependencies shell: bash run: | + # Echo inputs for debugging + echo "Running Python dependencies installation" + echo "PYTHON_VERSION: ${{ inputs.PYTHON_VERSION }}" + # Create log directory OUTPUT_DIR="$PWD/outputs" # absolute path LOG_FILE="${OUTPUT_DIR}/install_python_dependencies.log" @@ -191,10 +221,15 @@ runs: pip install -e "./_plugin_checkout_/${PLUGIN_REPO_NAME}[dev]" >> $LOG_FILE 2>&1 echo "Exit Code: 0" >> $LOG_FILE + echo "Completed Python dependencies installation" - name: Run pytest for Plugin shell: bash run: | + # Echo inputs for debugging + echo "Running pytest for plugin repository" + echo "PLUGIN_REPO_NAME: $PLUGIN_REPO_NAME" + # Create log directory OUTPUT_DIR="$PWD/outputs" # absolute path LOG_FILE="${OUTPUT_DIR}/pytest_plugin.log" @@ -213,4 +248,6 @@ runs: echo "Exit Code: 0" >> $LOG_FILE else echo "Exit Code: $rc" >> $LOG_FILE - fi \ No newline at end of file + fi + + echo "Completed pytest for plugin repository" \ No newline at end of file