Skip to content

Commit

Permalink
add to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
missing-user committed Dec 16, 2024
1 parent 7491933 commit e3cb69e
Show file tree
Hide file tree
Showing 5 changed files with 262 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ jobs:
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
- name: current_constraint_free_boundary_grid
run: |
cd ${SPEC_PATH}/ci/G3V08L3FrGrid
export OMP_NUM_THREADS=1
mpiexec -n 2 --allow-run-as-root $SPEC_PATH/install/bin/xspec G3V08L3FrGrid.001.sp
python3 -m py_spec.ci.test compare.h5 G3V08L3FrGrid.001.sp.h5 --tol 1e-10
6 changes: 6 additions & 0 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,10 @@ jobs:
export OMP_NUM_THREADS=1
mpiexec -n 2 --allow-run-as-root $SPEC_PATH/install/bin/xspec G3V08L3Fr.001.sp
python3 -m py_spec.ci.test compare.h5 G3V08L3Fr.001.sp.h5 --tol 1e-10
- name: current_constraint_free_boundary_grid
run: |
cd ${SPEC_PATH}/ci/G3V08L3FrGrid
export OMP_NUM_THREADS=1
mpiexec -n 2 --allow-run-as-root $SPEC_PATH/install/bin/xspec G3V08L3FrGrid.001.sp
python3 -m py_spec.ci.test compare.h5 G3V08L3FrGrid.001.sp.h5 --tol 1e-10
16 changes: 16 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,19 @@ CurrentConstraint_free:
- build:centos7
# reproduce:
# docker run -v `pwd`:`pwd` -w `pwd` csmiet/testspec sh -c 'source ./source.sh; cd ci/G3V08L3Fr; mpirun -n 4 --allow-run-as-root xspec G3V08L3Fr.001.sp; python3 -m py_spec.ci.test compare.h5 G3V08L3Fr.001.sp.h5'

CurrentConstraint_free_grid:
stage: test
image: csmiet/testspec
script:
- source source.sh
- cd ci/G3V08L3FrGrid
- mpirun -n 4 --allow-run-as-root xspec G3V08L3FrGrid.001.sp
- python3 -m py_spec.ci.test compare.h5 G3V08L3FrGrid.001.sp.h5 --tol 1e-10
artifacts:
when: always
paths:
- ci/G3V08L3FrGrid/G3V08L3FrGrid.001.sp.h5
expire_in: 1 week
dependencies:
- build:centos7
Loading

0 comments on commit e3cb69e

Please sign in to comment.