mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-04-08 02:27:49 +02:00
All checks were successful
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
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: Build on RHEL8 docker image
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: "ubuntu-latest"
|
|
container:
|
|
image: gitea.psi.ch/detectors/rhel8-detectors-dev
|
|
steps:
|
|
- name: Clone repository
|
|
run: |
|
|
echo Cloning ${{ github.ref_name }}
|
|
git clone https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git --branch=${{ github.ref_name }} .
|
|
|
|
- name: Build library
|
|
run: |
|
|
mkdir build && cd build
|
|
cmake .. -DSLS_USE_PYTHON=ON -DSLS_USE_TESTS=ON -DSLS_USE_SIMULATOR=ON
|
|
make -j 2
|
|
|
|
- name: C++ unit tests
|
|
working-directory: ${{gitea.workspace}}/build
|
|
run: ctest -j1 --rerun-failed --output-on-failure
|
|
|
|
- name: Install Python dependencies
|
|
run: |
|
|
python3.12 -m pip install --upgrade pip
|
|
python3.12 -m pip install pytest
|
|
python3.12 -m pip install colorama
|
|
python3.12 -m pip install numpy
|
|
|
|
- name: Python unit tests
|
|
working-directory: ${{gitea.workspace}}
|
|
run: |
|
|
export PYTHONPATH=$PWD/build/bin:$PYTHONPATH
|
|
python3.12 -m pytest python/tests |