mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-06-10 03:26:09 +02:00
6e090dbba2
Build and Deploy on local RHEL9 / build (push) Successful in 2m3s
Build on RHEL9 docker image / build (push) Successful in 3m32s
Build on RHEL8 docker image / build (push) Successful in 4m48s
Build and Deploy on local RHEL8 / build (push) Successful in 4m58s
Run Simulator Tests on local RHEL9 / build (push) Successful in 14m38s
Run Simulator Tests on local RHEL8 / build (push) Successful in 17m4s
* only run tests for pull-requests * build gui and simulators * trigger upon push to all branches * renamed workflows * added python tests * added colorama and numpy * added slsdet to pythonpath * updated workflow name
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
name: Run Simulator Tests on local RHEL8
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
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/gitea_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/gitea_runner/.bashrc
|
|
conda activate det
|
|
cmake --build build -j4 --config Debug
|
|
|
|
- name: Python unit tests with simulators
|
|
run: |
|
|
source /home/gitea_runner/.bashrc
|
|
conda activate det
|
|
export PYTHONPATH=$PWD/build/bin:$PYTHONPATH
|
|
export SLSDETNAME=gitea_runner_tests
|
|
python -m pytest -m detectorintegration python/tests --detector-integration
|
|
python -m pytest python/tests
|
|
|
|
|
|
- name: Simulator unit tests
|
|
run: |
|
|
source /home/gitea_runner/.bashrc
|
|
conda activate det
|
|
cd build/bin
|
|
python test_simulators.py -g
|
|
|
|
- name: Run frame synchronizer tests
|
|
run: |
|
|
source /home/gitea_runner/.bashrc
|
|
conda activate det
|
|
cd build/bin
|
|
python test_frame_synchronizer.py
|