Skip to content

cleanup of test_examples to remove lenses #137

cleanup of test_examples to remove lenses

cleanup of test_examples to remove lenses #137

Workflow file for this run

name: crpropa-testing_OSX
on: [push, pull_request]
jobs:
mac:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- name: "macos-14"
os: macos-14
cxx: "clang++"
cc: "clang"
fc: "gfortran-14"
swig_builtin: "On" #uses swig 4.0.2
py: "/usr/bin/python3" # python 3.14
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Preinstall
run: |
brew install hdf5 fftw cfitsio muparser libomp swig
python3 -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install numpy cmake
pip show numpy # cross-check numpy version for Python_NumPy_INCLUDE_DIR
- name: Set up the build
env:
CXX: ${{ matrix.config.cxx }}
CC: ${{ matrix.config.cc }}
FC: ${{ matrix.config.fc }}
CRPROPA_DATA_PATH: "/Users/runner/work/CRPropa3/CRPropa3/build/data"
run: |
mkdir build
cd build
cmake .. \
-DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/venv \
-DENABLE_PYTHON=True \
-DPython_EXECUTABLE=$GITHUB_WORKSPACE/venv/bin/python \
-DENABLE_TESTING=On \
-DENABLE_SWIG_BUILTIN=${{ matrix.config.swig_builtin }} \
-DPython_INSTALL_PACKAGE_DIR=$GITHUB_WORKSPACE/venv/lib/python3.14/site-packages
- name: Build CRPropa
run: |
cd build
make
- name: Run tests
env:
CRPROPA_DATA_PATH: "/Users/runner/work/CRPropa3/CRPropa3/build/data"
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