From 0aae03c429880cb0add0d30df5ce5f218ade71d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?JulienD=C3=B6rner?= Date: Thu, 26 Oct 2023 16:55:58 +0200 Subject: [PATCH] add pythonpath for notebook conversion --- .github/workflows/test_examples.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_examples.yml b/.github/workflows/test_examples.yml index 00aaf743c..18416d558 100644 --- a/.github/workflows/test_examples.yml +++ b/.github/workflows/test_examples.yml @@ -32,19 +32,19 @@ jobs: mkdir build cd build cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/.local -DENABLE_PYTHON=True -DPYTHON_EXECUTABLE=${{ matrix.config.py }} -DENABLE_TESTING=Off -DENABLE_SWIG_BUILTIN=${{ matrix.config.swig_builtin }} -DSIMD_EXTENSIONS=native - export PATH=$PATH:/$HOME/.local + export PATH=$PATH:$HOME/.local - name: Build CRPropa run: | cd build make install -j cd + export PYTHONPATH="$HOME/.local/" python -c "import crpropa" - name: convert notebooks to python run: | - cd doc/pages/example_notebooks export runfolder="notebook_run" mkdir "$runfolder" - for file in ./*/*.ipynb; do + for file in doc/pages/example_notebooks/*/*.ipynb; do if [ -f "$file" ]; then jupyter-nbconvert --to python "$file" --output-dir "$runfolder" fi