mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-18 17:24:04 +01:00
* 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
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
name: Run Simulator Tests on local RHEL9
|
|
|
|
on:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
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-RH9"
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Configure CMake
|
|
run: |
|
|
cmake -B build \
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
-DSLS_USE_TESTS=ON \
|
|
-DSLS_USE_SIMULATOR=ON \
|
|
-DSLS_USE_PYTHON=On \
|
|
-DPython_EXECUTABLE=/usr/bin/python3.13 \
|
|
-DPython_INCLUDE_DIR=/usr/include/python3.13 \
|
|
-DPython_LIBRARY=/usr/lib64/libpython3.13.so \
|
|
-DSLS_USE_HDF5=ON
|
|
|
|
- name: Build
|
|
# Build your program with the given configuration
|
|
run: cmake --build build -j4 --config Debug
|
|
|
|
- name: C++ unit tests
|
|
run: |
|
|
cd build
|
|
ctest -j1 --rerun-failed --output-on-failure
|
|
|
|
- name: Python unit tests with simulators
|
|
run: |
|
|
export PYTHONPATH=$PWD/build/bin:$PYTHONPATH
|
|
export SLSDETNAME=gitea_runner_tests
|
|
python3.13 -m pytest -m detectorintegration python/tests --detector-integration
|
|
python3.13 -m pytest python/tests
|
|
|
|
- name: Simulator unit tests
|
|
run: |
|
|
cd build/bin
|
|
python3.13 test_simulators.py -g
|
|
|
|
- name: Run frame synchronizer tests
|
|
run: |
|
|
cd build/bin
|
|
python3.13 test_frame_synchronizer.py
|