ci: disabled test verification for now
This commit is contained in:
@ -38,27 +38,27 @@ runs:
|
|||||||
git clone --depth 1 --branch ${{ inputs.BEC_PLUGIN_REPO_BRANCH }} ${{ inputs.BEC_PLUGIN_REPO_URL }}
|
git clone --depth 1 --branch ${{ inputs.BEC_PLUGIN_REPO_BRANCH }} ${{ inputs.BEC_PLUGIN_REPO_URL }}
|
||||||
cd ../
|
cd ../
|
||||||
# get the plugin repository name from the installed directory
|
# get the plugin repository name from the installed directory
|
||||||
PLUGIN_REPO_NAME=$(basename ${{ inputs.BEC_PLUGIN_REPO_URL }} .git)
|
# PLUGIN_REPO_NAME=$(basename ${{ inputs.BEC_PLUGIN_REPO_URL }} .git)
|
||||||
echo "PLUGIN_REPO_NAME=${PLUGIN_REPO_NAME}" >> $GITHUB_ENV
|
# echo "PLUGIN_REPO_NAME=${PLUGIN_REPO_NAME}" >> $GITHUB_ENV
|
||||||
echo "Plugin repository name: $PLUGIN_REPO_NAME"
|
# echo "Plugin repository name: $PLUGIN_REPO_NAME"
|
||||||
|
|
||||||
if ! find ./_checkout_/${PLUGIN_REPO_NAME}/tests -mindepth 1 -type f -name '*.py' | grep -q .; then
|
# if ! find ./_checkout_/${PLUGIN_REPO_NAME}/tests -mindepth 1 -type f -name '*.py' | grep -q .; then
|
||||||
echo "No tests found. Skipping pytest."
|
# echo "No tests found. Skipping pytest."
|
||||||
echo "skip_tests=true" >> $GITHUB_OUTPUT
|
# echo "skip_tests=true" >> $GITHUB_OUTPUT
|
||||||
else
|
# else
|
||||||
echo "Tests found. Proceeding with pytest."
|
# echo "Tests found. Proceeding with pytest."
|
||||||
echo "skip_tests=false" >> $GITHUB_OUTPUT
|
# echo "skip_tests=false" >> $GITHUB_OUTPUT
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
# if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
||||||
with:
|
with:
|
||||||
python-version: ${{ inputs.PYTHON_VERSION }}
|
python-version: ${{ inputs.PYTHON_VERSION }}
|
||||||
|
|
||||||
- name: Checkout BEC Core
|
- name: Checkout BEC Core
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
# if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
||||||
with:
|
with:
|
||||||
repository: bec/bec
|
repository: bec/bec
|
||||||
ref: ${{ inputs.BEC_CORE_BRANCH }}
|
ref: ${{ inputs.BEC_CORE_BRANCH }}
|
||||||
@ -66,7 +66,7 @@ runs:
|
|||||||
|
|
||||||
- name: Checkout Ophyd Devices
|
- name: Checkout Ophyd Devices
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
# if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
||||||
with:
|
with:
|
||||||
repository: bec/ophyd_devices
|
repository: bec/ophyd_devices
|
||||||
ref: ${{ inputs.OPHYD_DEVICES_BRANCH }}
|
ref: ${{ inputs.OPHYD_DEVICES_BRANCH }}
|
||||||
@ -74,7 +74,7 @@ runs:
|
|||||||
|
|
||||||
- name: Checkout BEC Widgets
|
- name: Checkout BEC Widgets
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
# if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
||||||
with:
|
with:
|
||||||
repository: bec/bec_widgets
|
repository: bec/bec_widgets
|
||||||
ref: ${{ inputs.BEC_WIDGETS_BRANCH }}
|
ref: ${{ inputs.BEC_WIDGETS_BRANCH }}
|
||||||
@ -82,7 +82,7 @@ runs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
# if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libgl1 libegl1 x11-utils libxkbcommon-x11-0 libdbus-1-3 xvfb
|
sudo apt-get install -y libgl1 libegl1 x11-utils libxkbcommon-x11-0 libdbus-1-3 xvfb
|
||||||
@ -90,7 +90,7 @@ runs:
|
|||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
# if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
||||||
run: |
|
run: |
|
||||||
pip install uv
|
pip install uv
|
||||||
# print the current directory to verify the structure
|
# print the current directory to verify the structure
|
||||||
@ -105,7 +105,7 @@ runs:
|
|||||||
|
|
||||||
- name: Run Pytest
|
- name: Run Pytest
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
# if: ( steps.plugin_checkout.outputs.skip_tests != 'true' )
|
||||||
run: |
|
run: |
|
||||||
cd ./_checkout_/${PLUGIN_REPO_NAME}
|
cd ./_checkout_/${PLUGIN_REPO_NAME}
|
||||||
pytest -v --maxfail=2 --random-order ./tests
|
pytest -v --maxfail=2 --random-order ./tests
|
||||||
|
Reference in New Issue
Block a user