Skip to content

Commit

Permalink
Testing lcov option
Browse files Browse the repository at this point in the history
  • Loading branch information
mattkwiecien committed Aug 2, 2023
1 parent 62d68cc commit e76bf74
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,24 +90,30 @@ jobs:
run: pip install .[nmt] --no-deps

- name: Run Tests
run: pytest --cov-report html -vv tests --cov=tjpcov

- name: Run MPI Tests (OpenMPI)
run: |
mamba install -y openmpi
pip install .[mpi] --no-deps
run: pytest --cov-report lcov -vv tests/test_covariance_clusters.py --cov=tjpcov

- name: Collect coverage report
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{matrix.python-version}}-${{matrix.runs-on}}
parallel: true

mpiexec -n 2 pytest -vv tests/test_mpi.py
# - name: Run MPI Tests (OpenMPI)
# run: |
# mamba install -y openmpi
# pip install .[mpi] --no-deps

mamba remove -y openmpi
pip uninstall -y mpi4py
# mpiexec -n 2 pytest -vv tests/test_mpi.py

- name: Run MPI Tests (mpich)
run: |
mamba install -y mpich
pip install -U mpi4py --no-cache-dir --no-deps
# mamba remove -y openmpi
# pip uninstall -y mpi4py

# - name: Run MPI Tests (mpich)
# run: |
# mamba install -y mpich
# pip install -U mpi4py --no-cache-dir --no-deps

mpiexec -n 2 pytest -vv tests/test_mpi.py
# mpiexec -n 2 pytest -vv tests/test_mpi.py

- name: Collect coverage report
uses: coverallsapp/github-action@v2
Expand Down

0 comments on commit e76bf74

Please sign in to comment.