File tree Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Expand file tree Collapse file tree 2 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -131,11 +131,6 @@ jobs:
131
131
# this job of tests to pass.
132
132
needs : [ build ]
133
133
uses : ./.github/workflows/ompi_mpi4py_tests.yaml
134
- with :
135
- # This parameter is required, so send a meaningless
136
- # environment variable name that will not affect the tests at
137
- # all (i.e., the tests will be run with default values).
138
- env_name : MAKE_TODAY_AN_OMPI_DAY
139
134
140
135
# ==============================================
141
136
Original file line number Diff line number Diff line change 9
9
workflow_call :
10
10
inputs :
11
11
env_name :
12
- required : true
12
+ default : ' MAKE_TODAY_AN_OMPI_DAY'
13
+ required : false
13
14
type : string
14
15
15
16
jobs :
16
17
mpi4py-tests :
17
18
runs-on : ubuntu-latest
18
19
timeout-minutes : 30
19
20
env :
20
- ${{ inputs.env_name}} : 1
21
+ ${{ inputs.env_name }} : true
21
22
steps :
22
23
- name : Use Python
23
24
uses : actions/setup-python@v5
67
68
run : python demo/test-run/test_run.py -v
68
69
if : ${{ true }}
69
70
timeout-minutes : 10
71
+
72
+ # ----------------------------------------------
73
+
74
+ - name : Relocate Open MPI installation
75
+ run : mv /opt/openmpi /opt/ompi
76
+ - name : Update PATH and set OPAL_PREFIX and LD_LIBRARY_PATH
77
+ run : |
78
+ sed -i '\|/opt/openmpi/bin|d' $GITHUB_PATH
79
+ echo OPAL_PREFIX=/opt/ompi >> $GITHUB_ENV
80
+ echo LD_LIBRARY_PATH=/opt/ompi/lib >> $GITHUB_ENV
81
+
82
+ - name : Test mpi4py (singleton)
83
+ run : python test/main.py -v
84
+ if : ${{ true }}
85
+ timeout-minutes : 10
86
+ - name : Test mpi4py (np=5)
87
+ run : /opt/ompi/bin/mpiexec -n 5 python test/main.py -v -f
88
+ if : ${{ true }}
89
+ timeout-minutes : 10
90
+
91
+ # ----------------------------------------------
You can’t perform that action at this time.
0 commit comments