Skip to content

Commit

Permalink
added python and mpi version verification. removing openmpi installat…
Browse files Browse the repository at this point in the history
…ion from pip
  • Loading branch information
kmilo9999 committed Jun 17, 2024
1 parent d4a1150 commit 19b8d5e
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 27 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/linux_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,20 @@ jobs:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install libopenmpi-dev openmpi-bin
- name: Check MPI version
shell: bash -el {0}
run: |
mpiexec --version
- name: Check Python version
shell: bash -el {0}
run: |
python --version
- name: Install dependencies
shell: bash -el {0}
run: |
python -m pip install --upgrade pip
python -m pip install mpi4py openmpi
python -m pip install mpi4py
- name: Install HNN-core
shell: bash -el {0}
run: |
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/macos_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ jobs:
run: |
python -m pip install --upgrade pip
conda install --yes -c conda-forge mpi4py openmpi
- name: Install HNN-core
shell: bash -el {0}
run: |
pip install --verbose '.[opt, parallel, test, gui]'
- name: Lint with flake8
shell: bash -el {0}
run: |
flake8 --count hnn_core
- name: Test with pytest
shell: bash -el {0}
run: |
python -m pytest ./hnn_core/tests/ --cov=hnn_core --cov-report=xml
- name: Upload coverage to Codecov
shell: bash -el {0}
run: |
bash <(curl -s https://codecov.io/bash) -f ./coverage.xml
# - name: Install HNN-core
# shell: bash -el {0}
# run: |
# pip install --verbose '.[opt, parallel, test, gui]'
# - name: Lint with flake8
# shell: bash -el {0}
# run: |
# flake8 --count hnn_core
# - name: Test with pytest
# shell: bash -el {0}
# run: |
# python -m pytest ./hnn_core/tests/ --cov=hnn_core --cov-report=xml
# - name: Upload coverage to Codecov
# shell: bash -el {0}
# run: |
# bash <(curl -s https://codecov.io/bash) -f ./coverage.xml
18 changes: 9 additions & 9 deletions .github/workflows/windows_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
python -c "import neuron"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies and HNN
shell: cmd
run: |
python -m pip install --upgrade pip
pip install --verbose .[opt,parallel,test,gui]
- name: Test with pytest
shell: cmd
run: |
python -m pytest ./hnn_core/tests/
# - name: Install dependencies and HNN
# shell: cmd
# run: |
# python -m pip install --upgrade pip
# pip install --verbose .[opt,parallel,test,gui]
# - name: Test with pytest
# shell: cmd
# run: |
# python -m pytest ./hnn_core/tests/

0 comments on commit 19b8d5e

Please sign in to comment.