refactor: cleanup
This commit is contained in:
58
action.yml
58
action.yml
@@ -207,64 +207,10 @@ runs:
|
||||
pytest --random-order --cov=. --cov-config=./pyproject.toml \
|
||||
--cov-branch --cov-report=xml --no-cov-on-fail ./tests/ \
|
||||
>> "$LOG_FILE" 2>&1 || rc=$?
|
||||
# pytest --random-order --cov=. --cov-config=./pyproject.toml --cov-branch --cov-report=xml --no-cov-on-fail ./tests/ || test $? -eq 5 >> $LOG_FILE 2>&1
|
||||
|
||||
|
||||
rc=${rc:-0}
|
||||
if [ "$rc" -eq 0 ] || [ "$rc" -eq 5 ]; then
|
||||
echo "Exit Code: 0" >> $LOG_FILE
|
||||
else
|
||||
echo "Exit Code: $rc" >> $LOG_FILE
|
||||
fi
|
||||
|
||||
|
||||
# - name: Checkout BEC Core
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# repository: bec/bec
|
||||
# ref: ${{ inputs.BEC_CORE_BRANCH }}
|
||||
# path: ./_checkout_/bec
|
||||
|
||||
# - name: Checkout Ophyd Devices
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# repository: bec/ophyd_devices
|
||||
# ref: ${{ inputs.OPHYD_DEVICES_BRANCH }}
|
||||
# path: ./_checkout_/ophyd_devices
|
||||
|
||||
# - name: Checkout BEC Widgets
|
||||
# uses: actions/checkout@v4
|
||||
# with:
|
||||
# repository: bec/bec_widgets
|
||||
# ref: ${{ inputs.BEC_WIDGETS_BRANCH }}
|
||||
# path: ./_checkout_/bec_widgets
|
||||
|
||||
# - name: Install dependencies
|
||||
# shell: bash
|
||||
# run: |
|
||||
# sudo apt-get update
|
||||
# sudo apt-get install -y libgl1 libegl1 x11-utils libxkbcommon-x11-0 libdbus-1-3 xvfb
|
||||
# sudo apt-get -y install libnss3 libxdamage1 libasound2t64 libatomic1 libxcursor1
|
||||
|
||||
# - name: Install Python dependencies
|
||||
# shell: bash
|
||||
# run: |
|
||||
# pip install uv
|
||||
# # 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]
|
||||
# uv pip install --system -e ./_checkout_/bec/bec_server[dev]
|
||||
# uv pip install --system -e ./_checkout_/bec_widgets[dev]
|
||||
# uv pip install --system -e ./_checkout_/${PLUGIN_REPO_NAME}[dev]
|
||||
|
||||
# - 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}
|
||||
# pytest -v --maxfail=2 --random-order ./tests
|
||||
fi
|
||||
Reference in New Issue
Block a user