mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
65 lines
1.9 KiB
YAML
65 lines
1.9 KiB
YAML
name: "BEC Widgets Install"
|
|
description: "Install BEC Widgets and related os dependencies"
|
|
inputs:
|
|
BEC_WIDGETS_BRANCH: # id of input
|
|
required: false
|
|
default: "main"
|
|
description: "Branch of BEC Widgets to install"
|
|
BEC_CORE_BRANCH: # id of input
|
|
required: false
|
|
default: "main"
|
|
description: "Branch of BEC Core to install"
|
|
OPHYD_DEVICES_BRANCH: # id of input
|
|
required: false
|
|
default: "main"
|
|
description: "Branch of Ophyd Devices to install"
|
|
PYTHON_VERSION: # id of input
|
|
required: false
|
|
default: "3.11"
|
|
description: "Python version to use"
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ inputs.PYTHON_VERSION }}
|
|
|
|
- name: Checkout BEC Core
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: bec-project/bec
|
|
ref: ${{ inputs.BEC_CORE_BRANCH }}
|
|
path: ./bec
|
|
|
|
- name: Checkout Ophyd Devices
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: bec-project/ophyd_devices
|
|
ref: ${{ inputs.OPHYD_DEVICES_BRANCH }}
|
|
path: ./ophyd_devices
|
|
|
|
- name: Checkout BEC Widgets
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: bec-project/bec_widgets
|
|
ref: ${{ inputs.BEC_WIDGETS_BRANCH }}
|
|
path: ./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
|
|
uv pip install --system -e ./ophyd_devices
|
|
uv pip install --system -e ./bec/bec_lib[dev]
|
|
uv pip install --system -e ./bec/bec_ipython_client
|
|
uv pip install --system -e ./bec_widgets[dev,pyside6]
|