Dev/automate tests using data (#267)
All checks were successful
Build on RHEL8 / build (push) Successful in 2m13s
Build on RHEL9 / build (push) Successful in 2m37s
Run tests using data on local RHEL8 / build (push) Successful in 3m12s

- automatically run python tests 
- automatically run test using data files on local runner from gitea
- fixed some of the workflows

---------

Co-authored-by: Erik Fröjdh <erik.frojdh@psi.ch>
This commit is contained in:
2026-01-20 17:20:48 +01:00
committed by GitHub
parent cbefbc43e9
commit b77a576f72
11 changed files with 146 additions and 45 deletions

View File

@@ -11,7 +11,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container:
image: gitea.psi.ch/images/rhel8-developer-gitea-actions
image: gitea.psi.ch/detectors/rhel8-detectors-dev
steps:
# workaround until actions/checkout@v4 is available for RH8
# - uses: actions/checkout@v4
@@ -21,9 +21,15 @@ jobs:
git clone https://${{secrets.GITHUB_TOKEN}}@gitea.psi.ch/${{ github.repository }}.git --branch=${{ github.ref_name }} .
- name: Install dependencies
- name: Install Python dependencies
run: |
dnf install -y cmake python3.12 python3.12-devel python3.12-pip
python3.12 -m pip install --upgrade pip
python3.12 -m pip install pytest
python3.12 -m pip install numpy
python3.12 -m pip install pytest-check
python3.12 -m pip install matplotlib
python3.12 -m pip install boost-histogram
- name: Build library
run: |
@@ -33,4 +39,9 @@ jobs:
- name: C++ unit tests
working-directory: ${{gitea.workspace}}/build
run: ctest
run: ctest
- name: Python unit tests
working-directory: ${{gitea.workspace}}/build
run: |
python3.12 -m pytest ${{gitea.workspace}}/python/tests/