wip #1
48
.gitea/workflows/ci.yml
Normal file
48
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
name: CI Beamline
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
BEC_WIDGETS_BRANCH:
|
||||||
|
description: "Branch of BEC Widgets to install"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
BEC_CORE_BRANCH:
|
||||||
|
description: "Branch of BEC Core to install"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
OPHYD_DEVICES_BRANCH:
|
||||||
|
description: "Branch of Ophyd Devices to install"
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash -el {0}
|
||||||
|
env:
|
||||||
|
QTWEBENGINE_DISABLE_SANDBOX: 1
|
||||||
|
QT_QPA_PLATFORM: "offscreen"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Shared Actions Repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
repository: bec/bec_shared_actions
|
||||||
|
ref: main
|
||||||
|
|
||||||
|
- name: Install and test a BEC plugin repository
|
||||||
|
uses: https://gitea.psi.ch/bec/bec_shared_actions/.gitea/plugin_repo_tests@main
|
||||||
|
with:
|
||||||
|
BEC_CORE_BRANCH: ${{ inputs.BEC_CORE_BRANCH || 'main' }}
|
||||||
|
BEC_WIDGETS_BRANCH: ${{ inputs.BEC_WIDGETS_BRANCH || 'main' }}
|
||||||
|
OPHYD_DEVICES_BRANCH: ${{ inputs.OPHYD_DEVICES_BRANCH || 'main' }}
|
||||||
|
BEC_PLUGIN_REPO_URL: "https://gitea.psi.ch/bec/phoenix_bec.git"
|
||||||
|
BEC_PLUGIN_REPO_BRANCH: ${{ gitea.ref_name || 'main' }}
|
||||||
|
PYTHON_VERSION: "3.11"
|
@ -16,7 +16,7 @@ def mock_trigger():
|
|||||||
name = "phoenix_trigger"
|
name = "phoenix_trigger"
|
||||||
prefix = "X07MB-OP2:"
|
prefix = "X07MB-OP2:"
|
||||||
dm = DMMock()
|
dm = DMMock()
|
||||||
with mock.patch.object(dm, "connector"):
|
with mock.patch.object(dm, "connecto"):
|
||||||
with (
|
with (
|
||||||
mock.patch(
|
mock.patch(
|
||||||
"ophyd_devices.interfaces.base_classes.bec_device_base.FileWriter"
|
"ophyd_devices.interfaces.base_classes.bec_device_base.FileWriter"
|
||||||
|
Reference in New Issue
Block a user