mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-01-22 21:50:45 +01:00
Dev/automate tests using data (#267)
- 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:
@@ -11,14 +11,19 @@ jobs:
|
||||
build:
|
||||
runs-on: "ubuntu-latest"
|
||||
container:
|
||||
image: gitea.psi.ch/images/rhel9-developer-gitea-actions
|
||||
image: gitea.psi.ch/detectors/rhel9-detectors-dev
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
- 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: |
|
||||
@@ -28,4 +33,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/
|
||||
Reference in New Issue
Block a user