Skip to content

Cleaned up some defintions of operators (#565) #1547

Cleaned up some defintions of operators (#565)

Cleaned up some defintions of operators (#565) #1547

name: "Generate coverage report"
on: [push]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: '3.11'
- uses: FedericoCarboni/setup-ffmpeg@v3
# install ffmpeg as special requirement
id: setup-ffmpeg
with:
ffmpeg-version: release
github-token: ${{ github.server_url == 'https://github.com' && github.token || '' }}
- 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