diff --git a/.gitea/plugin_repo_tests/action.yml b/action.yml similarity index 93% rename from .gitea/plugin_repo_tests/action.yml rename to action.yml index e0a2224..5b3f1d4 100644 --- a/.gitea/plugin_repo_tests/action.yml +++ b/action.yml @@ -90,6 +90,8 @@ runs: # print the current directory to verify the structure echo "Current directory: $(pwd)" echo "Available directories: $(ls _checkout_)" + PLUGIN_REPO_NAME=$(basename "${{ inputs.BEC_PLUGIN_REPO_URL }}" .git) + echo "Plugin repository name: $PLUGIN_REPO_NAME" uv pip install --system -e ./_checkout_/ophyd_devices[dev] uv pip install --system -e ./_checkout_/bec/bec_lib[dev] uv pip install --system -e ./_checkout_/bec/bec_ipython_client[dev] @@ -100,7 +102,7 @@ runs: - name: Run Pytest shell: bash run: | + PLUGIN_REPO_NAME=$(basename "${{ inputs.BEC_PLUGIN_REPO_URL }}" .git) + echo "Running tests for: $PLUGIN_REPO_NAME" cd ./_checkout_/${PLUGIN_REPO_NAME} - # echo "::group::Running Pytest" pytest -v --maxfail=2 --random-order ./tests - # echo "::endgroup::"