File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,30 @@ jobs:
46
46
- python : " 3.6"
47
47
- python : " 3.7"
48
48
- python : " 3.8"
49
+ mpi : true
49
50
- python : " 3.9"
50
51
51
52
steps :
52
53
- uses : actions/checkout@v2
53
54
55
+ - name : Cache conda environment
56
+ uses : actions/cache@v2
57
+ with :
58
+ path : |
59
+ ~/conda
60
+ key : conda
61
+
62
+ - name : install MPI
63
+ if : matrix.mpi
64
+ run : |
65
+ export MAMBA_ROOT_PREFIX=$HOME/conda
66
+ test -d $MAMBA_ROOT_PREFIX || mkdir $MAMBA_ROOT_PREFIX
67
+ wget -qO- https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
68
+ eval "$(./bin/micromamba shell hook -s posix)"
69
+ micromamba activate
70
+ micromamba install -y -c conda-forge mpich
71
+ echo "PATH=$MAMBA_ROOT_PREFIX/bin:$PATH" >> $GITHUB_ENV
72
+
54
73
- name : Install Python ${{ matrix.python }}
55
74
uses : actions/setup-python@v2
56
75
with :
You can’t perform that action at this time.
0 commit comments