Merge branch 'master' into interpolation #1499
Workflow file for this run
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@v3 | |
- name: Install FFmpeg | |
continue-on-error: true | |
run: | | |
sudo apt-get install ffmpeg | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- 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 |