Skip to content

Commit

Permalink
MAINT: Adding python 3.9 and 3.10 to multi porpuse workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilo9999 committed Jun 21, 2024
1 parent db2794d commit c78cb07
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/linux_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,34 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install ubuntu dependencies
shell: bash -el {0}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install libopenmpi-dev openmpi-bin
- name: Install dependencies
shell: bash -el {0}
run: |
python -m pip install --upgrade pip
python -m pip install mpi4py openmpi
- name: Install HNN-core
shell: bash -el {0}
run: |
python -m 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 Systems dependencies
# shell: bash -el {0}
# run: |
# sudo add-apt-repository ppa:ubuntu-toolchain-r/test
# sudo apt-get update
# sudo apt-get install libopenmpi-dev openmpi-bin

# - name: Install dependencies
# shell: bash -el {0}
# run: |
# python -m pip install --upgrade pip
# python -m pip install mpi4py openmpi
# - name: Install HNN-core
# shell: bash -el {0}
# run: |
# python -m 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
2 changes: 1 addition & 1 deletion .github/workflows/macos_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
strategy:
matrix:
os: [ubuntu-latest,macos-latest]
python-version: [3.8]
python-version: [3.8, 3.9, '3.10']

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit c78cb07

Please sign in to comment.