diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25cb635a..d6b8fb7a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,6 @@ jobs: fail-fast: false env: SPEC_PATH: ${{ github.workspace }} - PYTHONPATH: ${{ github.workspace }}/Utilities/pythontools OMPI_ALLOW_RUN_AS_ROOT: 1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 steps: @@ -22,6 +21,8 @@ jobs: sudo apt-get update sudo apt-get install gfortran mpi-default-bin mpi-default-dev libhdf5-103 libhdf5-dev libfftw3-bin libfftw3-dev libopenblas0-openmp libopenblas-dev pip3 install --user numpy f90nml scikit-build scipy h5py matplotlib + cd ${{ github.workspace }}/Utilities/pythontools + pip3 install -v . - name: compile_xspec run: | cd ${SPEC_PATH} @@ -33,14 +34,12 @@ jobs: - name: run_fast_cartesian run: | cd ${SPEC_PATH}/ci/G1V03L2Fi - echo ${PYTHONPATH} export OMP_NUM_THREADS=1 mpiexec -n 2 --allow-run-as-root ${SPEC_PATH}/xspec G1V03L2Fi.001.sp python3 -m py_spec.ci.test compare.h5 G1V03L2Fi.001.sp.h5 - name: run_fast_cylinder run: | cd ${SPEC_PATH}/ci/G2V32L1Fi - echo ${PYTHONPATH} export OMP_NUM_THREADS=1 mpiexec -n 2 --allow-run-as-root ${SPEC_PATH}/xspec G2V32L1Fi.001.sp python3 -m py_spec.ci.test compare.h5 G2V32L1Fi.001.sp.h5 diff --git a/.github/workflows/build_cmake.yml b/.github/workflows/build_cmake.yml index 866a50a9..3ea86651 100644 --- a/.github/workflows/build_cmake.yml +++ b/.github/workflows/build_cmake.yml @@ -8,7 +8,6 @@ jobs: fail-fast: false env: SPEC_PATH: ${{ github.workspace }} - PYTHONPATH: ${{ github.workspace }}/Utilities/pythontools OMPI_ALLOW_RUN_AS_ROOT: 1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1 steps: @@ -20,6 +19,8 @@ jobs: pip3 install --upgrade pip pip3 install --user ninja cmake scipy pip3 install --user numpy f90nml scikit-build scipy h5py matplotlib + cd ${{ github.workspace }}/Utilities/pythontools + pip3 install -v . - name: Build & Test uses: ashutoshvarma/action-cmake-build@master with: @@ -39,14 +40,12 @@ jobs: - name: run_fast_cartesian run: | cd ${SPEC_PATH}/ci/G1V03L2Fi - echo ${PYTHONPATH} export OMP_NUM_THREADS=1 mpiexec -n 2 --allow-run-as-root $SPEC_PATH/install/bin/xspec G1V03L2Fi.001.sp python3 -m py_spec.ci.test compare.h5 G1V03L2Fi.001.sp.h5 - name: run_fast_cylinder run: | cd ${SPEC_PATH}/ci/G2V32L1Fi - echo ${PYTHONPATH} export OMP_NUM_THREADS=1 mpiexec -n 2 --allow-run-as-root $SPEC_PATH/install/bin/xspec G2V32L1Fi.001.sp python3 -m py_spec.ci.test compare.h5 G2V32L1Fi.001.sp.h5