Files
slsDetectorPackage/.github/workflows/rh8-local-tests.yaml
mazzol_a 7d5f82e3db dev/Fix/nfs deploy workflows (#1672)
* reset udp streaming for all modules

* Revert "reset udp streaming for all modules"

This reverts commit e0d0a13def.

* fixed nfs upload workflows

* only build on push

* execute workflows on push for testing

* temporarily disable local tests

* forgot to commit

* also upload if not push to developer for testing

* reverted testing mode
2026-11-10 17:22:41 +01:00

73 lines
2.0 KiB
YAML

name: Run Simulator Tests on local RHEL8
on:
pull_request:
workflow_dispatch:
# Cancel older runs of this workflow for the same PR/branch when a new push arrives
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
jobs:
build:
runs-on: "detectors-software-RH8"
steps:
- uses: actions/checkout@v4
- name: Configure CMake
run: |
source /home/github_runner/.bashrc
conda activate det
cmake -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DSLS_USE_TESTS=ON \
-DSLS_USE_SIMULATOR=ON \
-DSLS_USE_PYTHON=On \
-DSLS_USE_HDF5=ON
- name: Build
# Build your program with the given configuration
run: |
source /home/github_runner/.bashrc
conda activate det
cmake --build build -j4 --config Debug
- name: C++ unit tests
run: |
source /home/github_runner/.bashrc
conda activate det
cd build
ctest -j1 --rerun-failed --output-on-failure
- name: Python unit tests with simulators
run: |
source /home/github_runner/.bashrc
conda activate det
export PYTHONPATH=$PWD/build/bin:$PYTHONPATH
export SLSDETNAME=github_runner_tests
python -m pytest -m detectorintegration python/tests --detector-integration
python -m pytest python/tests
- name: Simulator unit tests
run: |
source /home/github_runner/.bashrc
conda activate det
cd build/bin
export SLSDETNAME=github_runner_tests
python test_simulators.py -g
- name: Run frame synchronizer tests
run: |
source /home/github_runner/.bashrc
conda activate det
cd build/bin
export SLSDETNAME=github_runner_tests
python test_frame_synchronizer.py