Files
debye_bec/.gitea/workflows/ci.yml
appel_c 8d3d51f9fe
All checks were successful
CI for debye_bec / test (push) Successful in 1m10s
CI for debye_bec / test (pull_request) Successful in 1m8s
build: test ci shared action for pipeline
2025-09-23 23:40:27 -05:00

95 lines
3.4 KiB
YAML

name: CI for debye_bec
on:
push:
pull_request:
workflow_dispatch:
inputs:
BEC_WIDGETS_BRANCH:
description: "Branch of BEC Widgets to install"
required: false
type: string
default: "main"
BEC_CORE_BRANCH:
description: "Branch of BEC Core to install"
required: false
type: string
default: "main"
OPHYD_DEVICES_BRANCH:
description: "Branch of Ophyd Devices to install"
required: false
type: string
default: "main"
BEC_PLUGIN_REPO_BRANCH:
description: "Branch of the BEC Plugin Repository to install"
required: false
type: string
default: "main"
PYTHON_VERSION:
description: "Python version to use"
required: false
type: string
default: "3.11"
permissions:
pull-requests: write
jobs:
test:
runs-on: ubuntu-latest
env:
QTWEBENGINE_DISABLE_SANDBOX: 1
QT_QPA_PLATFORM: "offscreen"
steps:
- name: Checkout this shared action repository
uses: actions/checkout@v4
with:
repository: bec/bec_shared_actions
ref: main
path: bec_shared_actions
- name: Run shared CI action
uses: ./bec_shared_actions
continue-on-error: true
with:
BEC_WIDGETS_BRANCH: "${{ github.event.inputs.BEC_WIDGETS_BRANCH || 'main' }}"
BEC_CORE_BRANCH: "${{ github.event.inputs.BEC_CORE_BRANCH || 'main' }}"
OPHYD_DEVICES_BRANCH: "${{ github.event.inputs.OPHYD_DEVICES_BRANCH || 'main' }}"
BEC_PLUGIN_REPO_BRANCH: "${{ github.event_name == 'workflow_dispatch' && (github.event.inputs.BEC_PLUGIN_REPO_BRANCH || 'main') || github.head_ref || github.ref_name }}"
PYTHON_VERSION: "${{ github.event.inputs.PYTHON_VERSION || '3.11' }}"
BEC_PLUGIN_REPO_URL: "https://gitea.psi.ch/bec/${{ github.event.repository.name }}.git"
APT_PACKAGES: "libgl1 libegl1 x11-utils libxkbcommon-x11-0 libdbus-1-3 xvfb libnss3 libxdamage1 libasound2t64 libatomic1 libxcursor1"
- name: Checkout BEC Plugin Repository
run: |
chmod +x ./bec_shared_actions/give_runs_log.sh
./bec_shared_actions/give_runs_log.sh "outputs/checkout.log"
- name: Checkout BEC Core
run: |
chmod +x ./bec_shared_actions/give_runs_log.sh
./bec_shared_actions/give_runs_log.sh "outputs/checkout_bec_core.log"
- name: Checkout Ophyd Devices
run: |
chmod +x ./bec_shared_actions/give_runs_log.sh
./bec_shared_actions/give_runs_log.sh "outputs/checkout_ophyd_devices.log"
- name: Checkout BEC Widgets
run: |
chmod +x ./bec_shared_actions/give_runs_log.sh
./bec_shared_actions/give_runs_log.sh "outputs/checkout_bec_widgets.log"
- name: Install APT_PACKAGES
run: |
chmod +x ./bec_shared_actions/give_runs_log.sh
./bec_shared_actions/give_runs_log.sh "outputs/install_apt_packages.log"
- name: Install Python dependencies
run: |
chmod +x ./bec_shared_actions/give_runs_log.sh
./bec_shared_actions/give_runs_log.sh "outputs/install_python_dependencies.log"
- name: Run pytest for Plugin
run: |
chmod +x ./bec_shared_actions/give_runs_log.sh
./bec_shared_actions/give_runs_log.sh "outputs/pytest_plugin.log"