Refactor boundary index handling to improve clarity and support new i… #1720
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Generate coverage report" | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Setup FFmpeg | |
uses: AnimMouse/setup-ffmpeg@v1 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r tests/requirements_full.txt | |
pip install -r tests/requirements.txt | |
- name: Generate serial coverage report | |
env: | |
NUMBA_DISABLE_JIT: 1 | |
MPLBACKEND: agg | |
PYPDE_TESTRUN: 1 | |
run: | | |
export PYTHONPATH="${PYTHONPATH}:`pwd`" | |
pytest --cov-config=pyproject.toml --cov=pde -n auto tests | |
- name: Setup MPI | |
uses: mpi4py/setup-mpi@v1 | |
- name: Generate parallel coverage report | |
env: | |
NUMBA_DISABLE_JIT: 1 | |
MPLBACKEND: agg | |
PYPDE_TESTRUN: 1 | |
run: | | |
export PYTHONPATH="${PYTHONPATH}:`pwd`" | |
pip install -r tests/requirements_mpi.txt | |
mpiexec -n 2 pytest --cov-config=pyproject.toml --cov-append --cov=pde --use_mpi tests | |
- name: Create coverage report | |
run: | | |
coverage xml -o coverage_report.xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./coverage_report.xml | |
flags: unittests | |
name: codecov-pydev | |
fail_ci_if_error: true |