File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 25
25
mpi : mpich
26
26
- python : 3.9
27
27
mpi : openmpi
28
- env :
29
- OMPI_ALLOW_RUN_AS_ROOT : 1
30
- OMPI_ALLOW_RUN_AS_ROOT_CONFIRM : 1
31
28
steps :
32
29
- name : Cancel Previous Runs
33
30
uses : styfle/cancel-workflow-action@0.9.1
47
44
run : docker build -t hpc4cmb/cmbenv-${{ matrix.mpi }}:${TAGNAME} -f Dockerfile_docker-py${{ matrix.python }}-debian-${{ matrix.mpi }} .
48
45
49
46
- name : Test Docker Image
50
- run : docker run hpc4cmb/cmbenv-${{ matrix.mpi }}:${TAGNAME} python -c 'import toast.tests; toast.tests.run()'
47
+ run : docker run -e "OMPI_ALLOW_RUN_AS_ROOT=1" -e "OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1" hpc4cmb/cmbenv-${{ matrix.mpi }}:${TAGNAME} python -c 'import toast.tests; toast.tests.run()'
51
48
52
49
- name : Tag Latest
53
50
run : docker tag hpc4cmb/cmbenv-${{ matrix.mpi }}:${TAGNAME} hpc4cmb/cmbenv-${{ matrix.mpi }}:latest
Original file line number Diff line number Diff line change 24
24
mpi : mpich
25
25
- python : 3.9
26
26
mpi : openmpi
27
- env :
28
- OMPI_ALLOW_RUN_AS_ROOT : 1
29
- OMPI_ALLOW_RUN_AS_ROOT_CONFIRM : 1
30
27
steps :
31
28
- name : Cancel Previous Runs
32
29
uses : styfle/cancel-workflow-action@0.9.1
43
40
run : docker build -t hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} -f Dockerfile_docker-py${{ matrix.python }}-debian-${{ matrix.mpi }} .
44
41
45
42
- name : Test Docker Image
46
- run : docker run hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} python -c 'import toast.tests; toast.tests.run()' && docker run hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
43
+ run : docker run -e "OMPI_ALLOW_RUN_AS_ROOT=1" -e "OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1" hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} python -c 'import toast.tests; toast.tests.run()' && docker run -e "OMPI_ALLOW_RUN_AS_ROOT=1" -e "OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1" hpc4cmb/cmbenv:temp_py${{ matrix.python }}_${{ matrix.mpi }} mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
You can’t perform that action at this time.
0 commit comments