Skip to content

Commit

Permalink
ci: Debugging ubuntu pytest gh runner
Browse files Browse the repository at this point in the history
  • Loading branch information
gtdang committed May 29, 2024
1 parent aa773ec commit 1332c33
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
python-version: [3.8, 3.9]

steps:
Expand Down Expand Up @@ -43,10 +43,16 @@ jobs:
shell: bash -el {0}
run: |
flake8 --count hnn_core
- name: Test MPI
shell: bash -el {0}
run: |
mpiexec -np 2 nrniv -mpi -python -c 'from neuron import h; from mpi4py import MPI; \
print(f"Hello from proc {MPI.COMM_WORLD.Get_rank()}"); \
h.quit()'
- name: Test with pytest
shell: bash -el {0}
run: |
python -m pytest ./hnn_core/tests/ --cov=hnn_core --cov-report=xml
python -m pytest ./hnn_core/tests/ --cov=hnn_core --cov-report=xml --verbose
- name: Upload coverage to Codecov
shell: bash -el {0}
run: |
Expand Down

0 comments on commit 1332c33

Please sign in to comment.