Skip to content

Improved some typing and docstrings (#616) #1654

Improved some typing and docstrings (#616)

Improved some typing and docstrings (#616) #1654

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'
- 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