Skip to content

removed .ci from py_spec.__init__ #798

removed .ci from py_spec.__init__

removed .ci from py_spec.__init__ #798

Workflow file for this run

name: build-test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container: csmiet/testspec
env:
MACHINE: docker
SPEC_PATH: ${{ github.workspace }}
PYTHONPATH: ${{ github.workspace }}/Utilities/pythontools
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
steps:
- name: checkout sources
uses: actions/checkout@master
- name: install scipy
run: |
pip3 install scipy
- name: compile_xspec
run: |
cd ${SPEC_PATH}
make -j BUILD_ENV=gfortran xspec
- name: compile_dspec
run: |
cd ${SPEC_PATH}
make BUILD_ENV=gfortran dspec
- 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
- name: toroidal_freeboundary_vacuum
run: |
cd ${SPEC_PATH}/ci/toroidal_freeboundary_vacuum
export OMP_NUM_THREADS=1
mpiexec -n 2 --allow-run-as-root ${SPEC_PATH}/xspec G3V02L0Fr_LU.sp
mpiexec -n 2 --allow-run-as-root ${SPEC_PATH}/xspec G3V02L0Fr.sp
python3 -m py_spec.ci.test compare.h5 G3V02L0Fr_LU.sp.h5 --tol 1e-11
python3 -m py_spec.ci.test compare.h5 G3V02L0Fr.sp.h5 --tol 1e-11
- name: current_constraint_fixed_boundary
run: |
cd ${SPEC_PATH}/ci/G3V08L3Fi
export OMP_NUM_THREADS=1
mpiexec -n 2 --allow-run-as-root ${SPEC_PATH}/xspec G3V08L3Fi.001.sp
python3 -m py_spec.ci.test compare.h5 G3V08L3Fi.001.sp.h5 --tol 1e-10
- name: current_constraint_free_boundary
run: |
cd ${SPEC_PATH}/ci/G3V08L3Fr
export OMP_NUM_THREADS=1
mpiexec -n 2 --allow-run-as-root ${SPEC_PATH}/xspec G3V08L3Fr.001.sp
python3 -m py_spec.ci.test compare.h5 G3V08L3Fr.001.sp.h5 --tol 1e-10