Skip to content

Explicit Time Steps #435

Explicit Time Steps

Explicit Time Steps #435

name: crpropa-testing_ubuntu22
on:
push:
paths:
- ".github/workflows/testing_ubuntu22.yml"
- "**.cpp"
- "**.h"
- "**.py"
- "**.i"
- "**/CMakeLists.txt"
- "!plugin-template/**"
- "!doc/**"
pull_request:
paths:
- ".github/workflows/testing_ubuntu22.yml"
- "**.cpp"
- "**.h"
- "**.py"
- "**.i"
- "**/CMakeLists.txt"
- "!plugin-template/**"
- "!doc/**"
jobs:
linux:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- name: "ubuntu-22"
os: ubuntu-22.04
swig_builtin: "On" #uses swig 4.0.2
py: "/usr/bin/python3" #python 3.10
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Preinstall
run: |
sudo apt-get update
sudo apt-get install libmuparser-dev python3 python3-setuptools libhdf5-serial-dev libomp5 libomp-dev libfftw3-dev libcfitsio-dev lcov
pip install --upgrade pip
pip install numpy
pip show numpy
- name: Set up the build
run: |
mkdir build
cd build
cmake .. -DENABLE_PYTHON=True -DENABLE_TESTING=On -DPython_EXECUTABLE=${{ matrix.config.py }} -DENABLE_SWIG_BUILTIN=${{ matrix.config.swig_builtin }} -DSIMD_EXTENSIONS=native
- name: Build CRPropa
run: |
cd build
make
- name: Run tests
run: |
cd build
ctest --output-on-failure --repeat until-pass:3
- name: Archive test results
if: always()
uses: actions/upload-artifact@v7
with:
name: "test-report_${{matrix.config.name}}"
path: build/Testing/Temporary/LastTest.log