Skip to content

Commit

Permalink
edit github workflow to use install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Nov 28, 2023
1 parent 43a65fd commit d154125
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ jobs:
ls
- name: Install dependencies
run: |
pip install numpy
pip install numba
pip install h5py
pip install matplotlib
pip install scipy
pip install pytest
pip install colorama
sudo apt-get install libopenmpi-dev
pip install mpi4py
pip list
pip install -e .
source install.sh
#pip install numpy
#pip install numba
#pip install h5py
#pip install matplotlib
#pip install scipy
#pip install pytest
#pip install colorama
#sudo apt-get install libopenmpi-dev
#pip install mpi4py
#pip list
#pip install -e .
# wget https://github.com/mpi4py/mpi4py/releases/download/3.1.4/mpi4py-3.1.4.tar.gz
# tar -zxf mpi4py-3.1.4.tar.gz
# cd mpi4py-3.1.4
Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pip install -e .


# Install MC/DC dependencies, reply "y" to conda prompt
conda install numpy numba matplotlib scipy h5py pytest <<< "y"
conda install numpy numba matplotlib scipy h5py pytest colorama <<< "y"


# Patch numba
Expand Down Expand Up @@ -40,11 +40,11 @@ while [ $# -gt 0 ]; do
# Rename legacy compiler option in conda
s=$(which python)
s=${s//bin\/python/compiler_compat}

if [ ! -f $s/ld.bak ] && [ -f $s/ld ]; then
mv $s/ld $s/ld.bak
fi

mkdir installs; cd installs
wget https://github.com/mpi4py/mpi4py/releases/download/3.1.4/mpi4py-3.1.4.tar.gz -q
tar -zxf mpi4py-3.1.4.tar.gz
Expand Down

0 comments on commit d154125

Please sign in to comment.